Index: runtime/vm/intermediate_language_ia32.cc |
diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc |
index f25415b1eea6537ac471ffbd7206732240d2ec19..723926951fb4a4899ddc45661d54190041a186d7 100644 |
--- a/runtime/vm/intermediate_language_ia32.cc |
+++ b/runtime/vm/intermediate_language_ia32.cc |
@@ -2570,6 +2570,9 @@ void CheckStackOverflowInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
CheckStackOverflowSlowPath* slow_path = new CheckStackOverflowSlowPath(this); |
compiler->AddSlowPathCode(slow_path); |
+ if (compiler->ShouldDeoptimizeFunction()) { |
+ __ jmp(slow_path->entry_label()); |
+ } |
__ cmpl(ESP, |
Address::Absolute(Isolate::Current()->stack_limit_address())); |
__ j(BELOW_EQUAL, slow_path->entry_label()); |