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

Unified Diff: src/isolate.cc

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/isolate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 989b8ff7d85320e41049c41cac9cfb69ece62faa..a721e3bdb127d03b297e60da81312a37e0d79e77 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1872,6 +1872,7 @@ Isolate::Isolate(bool enable_serializer)
// TODO(bmeurer) Initialized lazily because it depends on flags; can
// be fixed once the default isolate cleanup is done.
random_number_generator_(NULL),
+ rail_mode_(PERFORMANCE_DEFAULT),
serializer_enabled_(enable_serializer),
has_fatal_error_(false),
initialized_from_snapshot_(false),
@@ -3015,6 +3016,12 @@ void Isolate::CheckDetachedContextsAfterGC() {
}
}
+void Isolate::SetRAILMode(RAILMode rail_mode) {
+ rail_mode_ = rail_mode;
+ if (FLAG_trace_rail) {
+ PrintIsolate(this, "RAIL mode: %s\n", RAILModeName(rail_mode_));
+ }
+}
bool StackLimitCheck::JsHasOverflowed(uintptr_t gap) const {
StackGuard* stack_guard = isolate_->stack_guard();
« include/v8.h ('K') | « src/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698