Index: runtime/vm/intermediate_language_arm.cc |
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc |
index 791a6f919af59548cd6968f427a49e16eed563ae..c9a940a7e5a7545a501f710497e1321aac2b2f20 100644 |
--- a/runtime/vm/intermediate_language_arm.cc |
+++ b/runtime/vm/intermediate_language_arm.cc |
@@ -2907,8 +2907,8 @@ void CatchBlockEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
LocalVariable* closure_parameter = scope->VariableAt(0); |
ASSERT(!closure_parameter->is_captured()); |
- __ ldr(CTX, Address(FP, closure_parameter->index() * kWordSize)); |
- __ ldr(CTX, FieldAddress(CTX, Closure::context_offset())); |
+ __ LoadFromOffset(kWord, CTX, FP, closure_parameter->index() * kWordSize); |
+ __ LoadFieldFromOffset(kWord, CTX, CTX, Closure::context_offset()); |
const intptr_t context_index = |
parsed_function.current_context_var()->index(); |