Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 9c5ae19d9adfd4676c4fc64d8216b1931e58c99b..bf4d4a52a9f9cba70f19f52001fbb7a93a6d1095 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -4550,12 +4550,12 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) { |
// Fall back to %AllocateInNewSpace (if not too big). |
Label too_big_for_new_space; |
__ bind(&allocate); |
- __ cmp(r1, Operand(Page::kMaxRegularHeapObjectSize)); |
+ __ cmp(r6, Operand(Page::kMaxRegularHeapObjectSize)); |
__ b(gt, &too_big_for_new_space); |
{ |
FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
- __ SmiTag(r1); |
- __ Push(r0, r2, r1); |
+ __ SmiTag(r6); |
+ __ Push(r0, r2, r6); |
__ CallRuntime(Runtime::kAllocateInNewSpace); |
__ mov(r3, r0); |
__ Pop(r0, r2); |