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

Unified Diff: runtime/vm/debugger_api_impl_test.cc

Issue 2728163002: VM: Make use_osr an Isolate flag, similar to how we made use_field_guards. (Closed)
Patch Set: Created 3 years, 10 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: runtime/vm/debugger_api_impl_test.cc
diff --git a/runtime/vm/debugger_api_impl_test.cc b/runtime/vm/debugger_api_impl_test.cc
index ee47df91c54befe28139ed51089bfc845238bc61..24a339aeea2f6a0fab5a93196bd5d8d7c386f90b 100644
--- a/runtime/vm/debugger_api_impl_test.cc
+++ b/runtime/vm/debugger_api_impl_test.cc
@@ -465,8 +465,9 @@ static void InspectStackTest(bool optimize) {
int saved_threshold = FLAG_optimization_counter_threshold;
const int kLowThreshold = 100;
const int kHighThreshold = 10000;
- bool saved_osr = FLAG_use_osr;
- FLAG_use_osr = false;
+ Isolate* isolate = Isolate::Current();
+ const bool saved_use_osr = isolate->use_osr();
+ isolate->set_use_osr(false);
if (optimize) {
// Warm up the code to make sure it gets optimized. We ignore any
@@ -511,7 +512,7 @@ static void InspectStackTest(bool optimize) {
}
FLAG_optimization_counter_threshold = saved_threshold;
- FLAG_use_osr = saved_osr;
+ isolate->set_use_osr(saved_use_osr);
}
« runtime/vm/dart.cc ('K') | « runtime/vm/dart.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698