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

Unified Diff: src/heap/heap.h

Issue 1863983002: 🏄 [heap] Add page evacuation mode for new->old (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup 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
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 59d7dfcf002f9229018a4965cdc0617eeef70541..565f236c6cca81e5cf39b611d3dcd2da705aeb5b 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -1408,6 +1408,8 @@ class Heap {
// finalize them.
class ExternalStringTable {
public:
+ enum CleanupMode { kFull, kPromoteOnly };
+
// Registers an external string.
inline void AddString(String* string);
@@ -1415,6 +1417,7 @@ class Heap {
// Restores internal invariant and gets rid of collected strings.
// Must be called after each Iterate() that modified the strings.
+ template <CleanupMode mode = kFull>
void CleanUp();
// Destroys all allocated memory.

Powered by Google App Engine
This is Rietveld 408576698