| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index 02a89b75cc564c118fa057dacceb5f0b08ee3fd9..3a82d8aab11f137762ba914dc394b2ece2fb4e34 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -2690,15 +2690,10 @@ void LCodeGen::DoArgumentsLength(LArgumentsLength* instr) {
|
| }
|
|
|
|
|
| -void LCodeGen::DoApplyArguments(LApplyArguments* instr) {
|
| +void LCodeGen::DoWrapReceiver(LWrapReceiver* instr) {
|
| Register receiver = ToRegister(instr->receiver());
|
| Register function = ToRegister(instr->function());
|
| - Register length = ToRegister(instr->length());
|
| - Register elements = ToRegister(instr->elements());
|
| Register scratch = scratch0();
|
| - ASSERT(receiver.is(a0)); // Used for parameter count.
|
| - ASSERT(function.is(a1)); // Required by InvokeFunction.
|
| - ASSERT(ToRegister(instr->result()).is(v0));
|
|
|
| // If the receiver is null or undefined, we have to pass the global
|
| // object as a receiver to normal functions. Values have to be
|
| @@ -2739,6 +2734,17 @@ void LCodeGen::DoApplyArguments(LApplyArguments* instr) {
|
| __ lw(receiver,
|
| FieldMemOperand(receiver, JSGlobalObject::kGlobalReceiverOffset));
|
| __ bind(&receiver_ok);
|
| +}
|
| +
|
| +void LCodeGen::DoApplyArguments(LApplyArguments* instr) {
|
| + Register receiver = ToRegister(instr->receiver());
|
| + Register function = ToRegister(instr->function());
|
| + Register length = ToRegister(instr->length());
|
| + Register elements = ToRegister(instr->elements());
|
| + Register scratch = scratch0();
|
| + ASSERT(receiver.is(a0)); // Used for parameter count.
|
| + ASSERT(function.is(a1)); // Required by InvokeFunction.
|
| + ASSERT(ToRegister(instr->result()).is(v0));
|
|
|
| // Copy the arguments to this function possibly from the
|
| // adaptor frame below it.
|
|
|