Index: runtime/vm/intermediate_language_ia32.cc |
diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc |
index 50027124042b40695299f94bd3dcdf134f4bdeb6..597fd43b3c7de2ff0c943b286b189f5bd798af83 100644 |
--- a/runtime/vm/intermediate_language_ia32.cc |
+++ b/runtime/vm/intermediate_language_ia32.cc |
@@ -2548,6 +2548,10 @@ LocationSummary* CatchBlockEntryInstr::MakeLocationSummary(Zone* zone, |
void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
+ // Ensure space for patching return sites for lazy deopt. |
+ if (!FLAG_precompiled_mode && compiler->is_optimizing()) { |
+ __ nop(CallPattern::pattern_length_in_bytes()); |
+ } |
__ Bind(compiler->GetJumpLabel(this)); |
compiler->AddExceptionHandler(catch_try_index(), |
try_index(), |