| Index: src/heap.cc
|
| ===================================================================
|
| --- src/heap.cc (revision 6955)
|
| +++ src/heap.cc (working copy)
|
| @@ -35,6 +35,7 @@
|
| #include "debug.h"
|
| #include "heap-profiler.h"
|
| #include "global-handles.h"
|
| +#include "liveobjectlist-inl.h"
|
| #include "mark-compact.h"
|
| #include "natives.h"
|
| #include "objects-visiting.h"
|
| @@ -393,6 +394,8 @@
|
| #if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING)
|
| ReportStatisticsBeforeGC();
|
| #endif
|
| +
|
| + LiveObjectList::GCPrologue();
|
| }
|
|
|
| intptr_t Heap::SizeOfObjects() {
|
| @@ -405,6 +408,7 @@
|
| }
|
|
|
| void Heap::GarbageCollectionEpilogue() {
|
| + LiveObjectList::GCEpilogue();
|
| #ifdef DEBUG
|
| allow_allocation(true);
|
| ZapFromSpace();
|
| @@ -1034,6 +1038,8 @@
|
| UpdateNewSpaceReferencesInExternalStringTable(
|
| &UpdateNewSpaceReferenceInExternalStringTableEntry);
|
|
|
| + LiveObjectList::UpdateReferencesForScavengeGC();
|
| +
|
| ASSERT(new_space_front == new_space_.top());
|
|
|
| is_safe_to_read_maps_ = true;
|
|
|