| Index: src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| index ff05c0ae6a898b61a0091e55c70f794e83b583bc..f306d3032c048bef5e0cd1d18588e30d3554f3bf 100644
|
| --- a/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| @@ -3528,7 +3528,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
|
| DCHECK(ToRegister(instr->result()).is(eax));
|
|
|
| __ Move(eax, Immediate(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.
|
| @@ -3569,7 +3569,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);
|
| }
|
| }
|
|
|