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

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: Rebase on master 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 4d27c40f06ea7f7e1be2c112e89a5635a9db3c3f..2942b018345c01aa170b98323c35df342714c174 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -1401,6 +1401,8 @@ class Heap {
// finalize them.
class ExternalStringTable {
public:
+ enum CleanupMode { kFull, kPromoteOnly };
+
// Registers an external string.
inline void AddString(String* string);
@@ -1408,6 +1410,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