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

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

Issue 2494723002: [heap] Record pretenuring feedback for moved pages (Closed)
Patch Set: Fix comilaton issue Created 4 years, 1 month 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-inl.h ('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 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;
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698