Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Unified Diff: src/heap.h

Issue 7689002: Remove obsolete kForceCompactionMask flag for GC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Do meaningful work on LowMemoryNotification. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/extensions/gc-extension.cc ('k') | src/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_; }
« no previous file with comments | « src/extensions/gc-extension.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698