Index: runtime/vm/intermediate_language_mips.cc |
diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc |
index e69534353de961ceb4e86fffb43b2d3e31c08569..6ec28cc235628723a696208940624a4a5a1950f5 100644 |
--- a/runtime/vm/intermediate_language_mips.cc |
+++ b/runtime/vm/intermediate_language_mips.cc |
@@ -2668,6 +2668,14 @@ 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()) { |
+ for (intptr_t i = 0; |
+ i < CallPattern::kDeoptCallLengthInInstructions; |
+ ++i) { |
+ __ nop(); |
+ } |
+ } |
__ Bind(compiler->GetJumpLabel(this)); |
compiler->AddExceptionHandler(catch_try_index(), |
try_index(), |