| Index: src/heap.h
|
| diff --git a/src/heap.h b/src/heap.h
|
| index 46d1454fc6f8df6914a5ed7999748fa9013e264c..7da14963109dbf934030ff81adc807f56e83372d 100644
|
| --- a/src/heap.h
|
| +++ b/src/heap.h
|
| @@ -903,15 +903,16 @@ class Heap {
|
| inline bool CollectGarbage(AllocationSpace space);
|
|
|
| static const int kNoGCFlags = 0;
|
| - static const int kForceCompactionMask = 1;
|
| - static const int kMakeHeapIterableMask = 2;
|
| + static const int kMakeHeapIterableMask = 1;
|
|
|
| - // Performs a full garbage collection. If (flags & kForceCompactionMask) is
|
| - // non-zero then force compaction. If (flags & kMakeHeapIterableMask) is non-
|
| - // zero, then the slower precise sweeper is used, which leaves the heap in a
|
| - // state where we can iterate over the heap visiting all objects.
|
| + // Performs a full garbage collection. If (flags & kMakeHeapIterableMask) is
|
| + // non-zero, then the slower precise sweeper is used, which leaves the heap
|
| + // in a state where we can iterate over the heap visiting all objects.
|
| void CollectAllGarbage(int flags);
|
|
|
| + // Last hope GC, should try to squeeze as much as possible.
|
| + void CollectAllAvailableGarbage();
|
| +
|
| // Check whether the heap is currently iterable.
|
| bool IsHeapIterable();
|
|
|
| @@ -919,9 +920,6 @@ class Heap {
|
| // over all objects. May cause a GC.
|
| void EnsureHeapIsIterable();
|
|
|
| - // Last hope GC, should try to squeeze as much as possible.
|
| - void CollectAllAvailableGarbage();
|
| -
|
| // Notify the heap that a context has been disposed.
|
| int NotifyContextDisposed() { return ++contexts_disposed_; }
|
|
|
|
|