Index: src/heap/mark-compact.h |
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h |
index 3c542bd2edbba5418d4742d4a89eb73a88e71823..58bf2a502998b5ff62973105d566bc75f94ebefc 100644 |
--- a/src/heap/mark-compact.h |
+++ b/src/heap/mark-compact.h |
@@ -628,14 +628,13 @@ class MarkCompactCollector { |
void RegisterExternallyReferencedObject(Object** object); |
private: |
+ class EvacuateNewSpacePageVisitor; |
class EvacuateNewSpaceVisitor; |
class EvacuateOldSpaceVisitor; |
class EvacuateRecordOnlyVisitor; |
class EvacuateVisitorBase; |
class HeapObjectVisitor; |
- typedef std::vector<Page*> SweepingList; |
- |
explicit MarkCompactCollector(Heap* heap); |
bool WillBeDeoptimized(Code* code); |
@@ -828,7 +827,8 @@ class MarkCompactCollector { |
// Iterates through all live objects on a page using marking information. |
// Returns whether all objects have successfully been visited. |
- bool VisitLiveObjects(MemoryChunk* page, HeapObjectVisitor* visitor, |
+ template <class Visitor> |
+ bool VisitLiveObjects(MemoryChunk* page, Visitor* visitor, |
IterationMode mode); |
void VisitLiveObjectsBody(Page* page, ObjectVisitor* visitor); |