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

Unified Diff: src/heap/mark-compact.h

Issue 1896883003: Revert of 🏄 [heap] Add page evacuation mode for new->old (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698