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

Unified Diff: src/isolate.h

Issue 1999743002: Adding a SetRAILMode API. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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
« include/v8.h ('K') | « src/flag-definitions.h ('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 5895ebbc9d7c33b1ba1208a08e220e178c7aca7d..40f0c0ea5c93e3ae13bacfa9b832273c0e1d0133 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1110,6 +1110,8 @@ class Isolate {
bool IsInAnyContext(Object* object, uint32_t index);
+ void SetRAILMode(RAILMode rail_mode);
+
protected:
explicit Isolate(bool enable_serializer);
bool IsArrayOrObjectPrototype(Object* object);
@@ -1221,6 +1223,24 @@ class Isolate {
void RunMicrotasksInternal();
+ const char* RAILModeName(RAILMode rail_mode) const {
+ switch (rail_mode) {
+ case PERFORMANCE_DEFAULT:
+ return "DEFAULT";
+ case PERFORMANCE_RESPONSE:
+ return "RESPONSE";
+ case PERFORMANCE_ANIMATION:
+ return "ANIMATION";
+ case PERFORMANCE_IDLE:
+ return "IDLE";
+ case PERFORMANCE_LOAD:
+ return "LOAD";
+ default:
+ UNREACHABLE();
+ }
+ return "";
+ }
+
base::Atomic32 id_;
EntryStackItem* entry_stack_;
int stack_trace_nesting_level_;
@@ -1267,6 +1287,7 @@ class Isolate {
DateCache* date_cache_;
CallInterfaceDescriptorData* call_descriptor_data_;
base::RandomNumberGenerator* random_number_generator_;
+ RAILMode rail_mode_;
// Whether the isolate has been created for snapshotting.
bool serializer_enabled_;
« include/v8.h ('K') | « src/flag-definitions.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698