| Index: src/crankshaft/mips/lithium-codegen-mips.cc
|
| diff --git a/src/crankshaft/mips/lithium-codegen-mips.cc b/src/crankshaft/mips/lithium-codegen-mips.cc
|
| index 9a194772c6eef4ac1854cc9469b0b015cead86d1..614c8c87972259874d141ec40f69c5bc4c30e858 100644
|
| --- a/src/crankshaft/mips/lithium-codegen-mips.cc
|
| +++ b/src/crankshaft/mips/lithium-codegen-mips.cc
|
| @@ -3640,7 +3640,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
|
| DCHECK(ToRegister(instr->result()).is(v0));
|
|
|
| __ li(a0, Operand(instr->arity()));
|
| - if (instr->arity() == 1) {
|
| + if (instr->arity() > 0) {
|
| // We only need the allocation site for the case we have a length argument.
|
| // The case may bail out to the runtime, which will determine the correct
|
| // elements kind with the site.
|
| @@ -3679,7 +3679,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
|
| CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
|
| __ bind(&done);
|
| } else {
|
| - ArrayNArgumentsConstructorStub stub(isolate(), kind, override_mode);
|
| + ArrayNArgumentsConstructorStub stub(isolate());
|
| CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
|
| }
|
| }
|
|
|