Index: src/heap/mark-compact.h |
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h |
index 58bf2a502998b5ff62973105d566bc75f94ebefc..3c542bd2edbba5418d4742d4a89eb73a88e71823 100644 |
--- a/src/heap/mark-compact.h |
+++ b/src/heap/mark-compact.h |
@@ -628,12 +628,13 @@ |
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); |
@@ -827,8 +828,7 @@ |
// Iterates through all live objects on a page using marking information. |
// Returns whether all objects have successfully been visited. |
- template <class Visitor> |
- bool VisitLiveObjects(MemoryChunk* page, Visitor* visitor, |
+ bool VisitLiveObjects(MemoryChunk* page, HeapObjectVisitor* visitor, |
IterationMode mode); |
void VisitLiveObjectsBody(Page* page, ObjectVisitor* visitor); |