diff options
Diffstat (limited to 'deps/v8/src/mark-compact.h')
-rw-r--r-- | deps/v8/src/mark-compact.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/deps/v8/src/mark-compact.h b/deps/v8/src/mark-compact.h index 1d289a759..ad635867c 100644 --- a/deps/v8/src/mark-compact.h +++ b/deps/v8/src/mark-compact.h @@ -86,6 +86,9 @@ class MarkCompactCollector: public AllStatic { force_compaction_ = value; } + + static void Initialize(); + // Prepares for GC by resetting relocation info in old and map spaces and // choosing spaces to compact. static void Prepare(GCTracer* tracer); @@ -171,6 +174,7 @@ class MarkCompactCollector: public AllStatic { friend class RootMarkingVisitor; friend class MarkingVisitor; + friend class StaticMarkingVisitor; // Marking operations for objects reachable from roots. static void MarkLiveObjects(); @@ -214,17 +218,17 @@ class MarkCompactCollector: public AllStatic { // Mark all objects in an object group with at least one marked // object, then all objects reachable from marked objects in object // groups, and repeat. - static void ProcessObjectGroups(MarkingVisitor* visitor); + static void ProcessObjectGroups(); // Mark objects reachable (transitively) from objects in the marking stack // or overflowed in the heap. - static void ProcessMarkingStack(MarkingVisitor* visitor); + static void ProcessMarkingStack(); // Mark objects reachable (transitively) from objects in the marking // stack. This function empties the marking stack, but may leave // overflowed objects in the heap, in which case the marking stack's // overflow flag will be set. - static void EmptyMarkingStack(MarkingVisitor* visitor); + static void EmptyMarkingStack(); // Refill the marking stack with overflowed objects from the heap. This // function either leaves the marking stack full or clears the overflow |