Index: src/crankshaft/arm64/lithium-codegen-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
index 5e6b905af0e13f34ddf3a30e95238d5d176df6e6..48559b045d04bbf06a21a1b953cefd677af7bc45 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -364,15 +364,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
DCHECK(ToRegister(instr->constructor()).is(x1)); |
__ Mov(x0, Operand(instr->arity())); |
- if (instr->arity() == 1) { |
- // 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. |
- __ Mov(x2, instr->hydrogen()->site()); |
- } else { |
- __ LoadRoot(x2, Heap::kUndefinedValueRootIndex); |
- } |
- |
+ __ Mov(x2, instr->hydrogen()->site()); |
ElementsKind kind = instr->hydrogen()->elements_kind(); |
AllocationSiteOverrideMode override_mode = |
@@ -405,7 +397,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); |
} |
RecordPushedArgumentsDelta(instr->hydrogen()->argument_delta()); |