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

Unified Diff: runtime/vm/intermediate_language_arm64.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/intermediate_language_arm64.cc
diff --git a/runtime/vm/intermediate_language_arm64.cc b/runtime/vm/intermediate_language_arm64.cc
index 0d78d48a19334994530555ce0cc42bf0c7c0dbe3..1f2a9b24067174b873ab9ef0ddf106b7b1df5a6b 100644
--- a/runtime/vm/intermediate_language_arm64.cc
+++ b/runtime/vm/intermediate_language_arm64.cc
@@ -2642,7 +2642,7 @@ class CheckStackOverflowSlowPath : public SlowPathCode {
: instruction_(instruction) {}
virtual void EmitNativeCode(FlowGraphCompiler* compiler) {
- if (FLAG_use_osr && osr_entry_label()->IsLinked()) {
+ if (compiler->isolate()->use_osr() && osr_entry_label()->IsLinked()) {
const Register value = instruction_->locs()->temp(0).reg();
__ Comment("CheckStackOverflowSlowPathOsr");
__ Bind(osr_entry_label());
@@ -2661,7 +2661,8 @@ class CheckStackOverflowSlowPath : public SlowPathCode {
instruction_->token_pos(), instruction_->deopt_id(),
kStackOverflowRuntimeEntry, 0, instruction_->locs());
- if (FLAG_use_osr && !compiler->is_optimizing() && instruction_->in_loop()) {
+ if (compiler->isolate()->use_osr() && !compiler->is_optimizing() &&
+ instruction_->in_loop()) {
// In unoptimized code, record loop stack checks as possible OSR entries.
compiler->AddCurrentDescriptor(RawPcDescriptors::kOsrEntry,
instruction_->deopt_id(),
@@ -2673,7 +2674,7 @@ class CheckStackOverflowSlowPath : public SlowPathCode {
}
Label* osr_entry_label() {
- ASSERT(FLAG_use_osr);
+ ASSERT(Isolate::Current()->use_osr());
return &osr_entry_label_;
}

Powered by Google App Engine
This is Rietveld 408576698