Simplify synthetic roots creation in heap snapshot
authoryurys@chromium.org <yurys@chromium.org>
Mon, 22 Sep 2014 14:40:59 +0000 (14:40 +0000)
committeryurys@chromium.org <yurys@chromium.org>
Mon, 22 Sep 2014 14:40:59 +0000 (14:40 +0000)
commit269c46ee806dd5a9e8bd0e59ac2f94c408be050b
tree4d8a2a4983bfa221b4087dd5e301a71a593a848a
parent7384467552d94c133efc827bda63361f01aa2e07
Simplify synthetic roots creation in heap snapshot

The synthetic roots exist in every snapshot and there are no actual objects corresponding to them (there was attempt to create some virtual objects to reuse existing snapshot builder but it just complicated the things).

Previously synthetic root wouldn't have been added if it was empty. Current implementation always adds all synthetic roots in the snapshot no matter if they are empty or not.

BUG=None
LOG=N
R=alph@chromium.org, mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/590833002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24124 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap-snapshot-generator-inl.h
src/heap-snapshot-generator.cc
src/heap-snapshot-generator.h