Tell the GC prologues to construct RetainedObjectInfos only when needed.
authorhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Apr 2013 12:08:10 +0000 (12:08 +0000)
committerhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Apr 2013 12:08:10 +0000 (12:08 +0000)
commit7ed7af2f9fb88e72d4d0e568c2b6782e18bfd0f5
tree44d3d9dcde1d7d792ccb1d61550494da32037c1f
parent44f2d534b162edc5da6f03d73a44c993b7dcdeb3
Tell the GC prologues to construct RetainedObjectInfos only when needed.

The GC prologue is called by the GC, but also by the heap snapshotter. The
RetainedObjectInfos are only needed by the heap snapshotter, so it's wasteful to
construct them always. (And it will be even more wasteful when Blink migrates to
the new GC APIs, since after that point it no longer knows about object groups.)

BUG=

Review URL: https://codereview.chromium.org/14471028
Patch from Marja Hölttä <marja@chromium.org>.

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