Index: runtime/vm/intermediate_language_x64.cc |
=================================================================== |
--- runtime/vm/intermediate_language_x64.cc (revision 45256) |
+++ runtime/vm/intermediate_language_x64.cc (working copy) |
@@ -2586,7 +2586,7 @@ |
: instruction_(instruction) { } |
virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
- if (FLAG_use_osr) { |
+ if (FLAG_use_osr && osr_entry_label()->IsLinked()) { |
uword flags_address = Isolate::Current()->stack_overflow_flags_address(); |
Register temp = instruction_->locs()->temp(0).reg(); |
__ Comment("CheckStackOverflowSlowPathOsr"); |