Index: src/heap/mark-compact.h |
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h |
index 44e90d5a4b20ec7b3e14ce4b6e175fa7e49766b7..91842bc0da1f47dfbe5be03dd120f9642b913c5c 100644 |
--- a/src/heap/mark-compact.h |
+++ b/src/heap/mark-compact.h |
@@ -329,6 +329,8 @@ class LiveObjectIterator BASE_EMBEDDED { |
MarkBit::CellType current_cell_; |
}; |
+enum PageEvacuationMode { NEW_TO_NEW, NEW_TO_OLD }; |
+ |
// ------------------------------------------------------------------------- |
// Mark-Compact collector |
class MarkCompactCollector { |
@@ -526,6 +528,7 @@ class MarkCompactCollector { |
Sweeper& sweeper() { return sweeper_; } |
private: |
+ template <PageEvacuationMode mode> |
class EvacuateNewSpacePageVisitor; |
class EvacuateNewSpaceVisitor; |
class EvacuateOldSpaceVisitor; |