| Index: src/mips64/lithium-codegen-mips64.cc
|
| diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc
|
| index a612681c5b37086779db837e4ec22f94da26eecd..4eeb53b53848c8203eb352f1a4e56dc9cdca5b12 100644
|
| --- a/src/mips64/lithium-codegen-mips64.cc
|
| +++ b/src/mips64/lithium-codegen-mips64.cc
|
| @@ -3582,11 +3582,8 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
|
| // Change context.
|
| __ ld(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.
|
| __ ld(at, FieldMemOperand(function_reg, JSFunction::kCodeEntryOffset));
|
| @@ -4012,9 +4009,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.
|
| __ ld(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
|
|
|