Index: src/crankshaft/arm/lithium-codegen-arm.cc |
diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc |
index 4fd039554cefe87d114ec936a42ee953f16bee4b..eace12d03b1328ddcd1cc6e1648f459d6e468a5a 100644 |
--- a/src/crankshaft/arm/lithium-codegen-arm.cc |
+++ b/src/crankshaft/arm/lithium-codegen-arm.cc |
@@ -3708,7 +3708,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
DCHECK(ToRegister(instr->result()).is(r0)); |
__ mov(r0, 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. |
@@ -3748,7 +3748,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); |
} |
} |