Index: runtime/vm/stub_code_arm.cc |
diff --git a/runtime/vm/stub_code_arm.cc b/runtime/vm/stub_code_arm.cc |
index 3bcf173ba07b6f33928c539493773cb1e531c585..8af9e5a0e209c4c19360d5f097bd664aec2a0168 100644 |
--- a/runtime/vm/stub_code_arm.cc |
+++ b/runtime/vm/stub_code_arm.cc |
@@ -522,7 +522,7 @@ static void GenerateDeoptimizationSequence(Assembler* assembler, |
__ CallRuntime(kDeoptimizeMaterializeRuntimeEntry, 0); |
// Result tells stub how many bytes to remove from the expression stack |
// of the bottom-most frame. They were used as materialization arguments. |
- __ Pop(R1); |
+ __ Pop(R2); |
if (kind == kLazyDeoptFromReturn) { |
__ Pop(R0); // Restore result. |
} else if (kind == kLazyDeoptFromThrow) { |
@@ -531,7 +531,7 @@ static void GenerateDeoptimizationSequence(Assembler* assembler, |
} |
__ LeaveStubFrame(); |
// Remove materialization arguments. |
- __ add(SP, SP, Operand(R1, ASR, kSmiTagSize)); |
+ __ add(SP, SP, Operand(R2, ASR, kSmiTagSize)); |
__ Ret(); |
} |