| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index 5586ed1ab264e7dd1f1a68ed40a313ff71e370e3..bbe509213c9bca6ccc4be107fb34383cc8356e63 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -3413,11 +3413,8 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
|
| // Change context.
|
| __ lw(cp, FieldMemOperand(function_reg, JSFunction::kContextOffset));
|
|
|
| - // Set r0 to arguments count if adaption is not needed. Assumes that r0
|
| - // is available to write to at this point.
|
| - if (dont_adapt_arguments) {
|
| - __ li(a0, Operand(arity));
|
| - }
|
| + // Always initialize a0 to the number of actual arguments.
|
| + __ li(a0, Operand(arity));
|
|
|
| // Invoke function.
|
| __ lw(at, FieldMemOperand(function_reg, JSFunction::kCodeEntryOffset));
|
| @@ -3824,9 +3821,7 @@ void LCodeGen::DoCallJSFunction(LCallJSFunction* instr) {
|
| DCHECK(ToRegister(instr->function()).is(a1));
|
| DCHECK(ToRegister(instr->result()).is(v0));
|
|
|
| - if (instr->hydrogen()->pass_argument_count()) {
|
| - __ li(a0, Operand(instr->arity()));
|
| - }
|
| + __ li(a0, Operand(instr->arity()));
|
|
|
| // Change context.
|
| __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
|
|
|