| Index: src/arm/builtins-arm.cc
|
| diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc
|
| index 60f529003006afcf45981e2042229401b2729621..ae50d7965bd663d8e53792515d231e873d025032 100644
|
| --- a/src/arm/builtins-arm.cc
|
| +++ b/src/arm/builtins-arm.cc
|
| @@ -294,10 +294,8 @@ static void CallRuntimePassFunction(MacroAssembler* masm,
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
| // Push a copy of the function onto the stack.
|
| __ push(r1);
|
| - // Push call kind information.
|
| - __ push(r5);
|
| - // Function is also the parameter to the runtime call.
|
| - __ push(r1);
|
| + // Push call kind information and function as parameter to the runtime call.
|
| + __ Push(r5, r1);
|
|
|
| __ CallRuntime(function_id, 1);
|
| // Restore call kind information.
|
| @@ -406,9 +404,9 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
|
| __ strb(r4, constructor_count);
|
| __ b(ne, &allocate);
|
|
|
| - __ Push(r1, r2);
|
| + __ push(r1);
|
|
|
| - __ push(r1); // constructor
|
| + __ Push(r2, r1); // r1 = constructor
|
| // The call will replace the stub, so the countdown is only done once.
|
| __ CallRuntime(Runtime::kFinalizeInstanceSize, 1);
|
|
|
| @@ -1208,8 +1206,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) {
|
|
|
| // Out of stack space.
|
| __ ldr(r1, MemOperand(fp, kFunctionOffset));
|
| - __ push(r1);
|
| - __ push(r0);
|
| + __ Push(r1, r0);
|
| __ InvokeBuiltin(Builtins::APPLY_OVERFLOW, CALL_FUNCTION);
|
| // End of stack check.
|
|
|
| @@ -1291,8 +1288,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) {
|
| // r0: current argument index
|
| __ bind(&loop);
|
| __ ldr(r1, MemOperand(fp, kArgsOffset));
|
| - __ push(r1);
|
| - __ push(r0);
|
| + __ Push(r1, r0);
|
|
|
| // Call the runtime to access the property in the arguments array.
|
| __ CallRuntime(Runtime::kGetProperty, 2);
|
|
|