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

Unified Diff: src/isolate.h

Issue 2218703004: Unify memory optimization modes and flags. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: x Created 4 years, 4 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/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 4dcafb2c6f39d02737fa085b647fb378808a6d1e..bc1fc0807fe26ae04d708be936bc0dccd976c323 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1162,6 +1162,12 @@ class Isolate {
void SetRAILMode(RAILMode rail_mode);
+ void IsolateInForegroundNotification();
+
+ void IsolateInBackgroundNotification();
+
+ bool IsIsolateInBackground() { return is_isolate_in_background_; }
+
protected:
explicit Isolate(bool enable_serializer);
bool IsArrayOrObjectPrototype(Object* object);
@@ -1353,6 +1359,10 @@ class Isolate {
// True if ES2015 tail call elimination feature is enabled.
bool is_tail_call_elimination_enabled_;
+ // True if the isolate is in background. This flag is used
+ // to prioritize between memory usage and latency.
+ bool is_isolate_in_background_;
+
// Time stamp at initialization.
double time_millis_at_init_;
« no previous file with comments | « src/heap/heap.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698