Index: src/crankshaft/x64/lithium-codegen-x64.cc |
diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc |
index 0746d3b434d593e5d640504ef1e3e5d9b839e958..aac457b8e840818ee326b0e86136ba0818a09920 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -3729,7 +3729,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
DCHECK(ToRegister(instr->result()).is(rax)); |
__ Set(rax, 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. |
@@ -3770,7 +3770,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); |
} |
} |