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..9ff56bc3e3a39f05acfcf42ac5ab26c1befdc8d2 100644 |
--- a/src/crankshaft/mips/lithium-codegen-mips.cc |
+++ b/src/crankshaft/mips/lithium-codegen-mips.cc |
@@ -3640,14 +3640,8 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
DCHECK(ToRegister(instr->result()).is(v0)); |
__ li(a0, 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. |
- __ li(a2, instr->hydrogen()->site()); |
- } else { |
- __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
- } |
+ __ li(a2, instr->hydrogen()->site()); |
+ |
ElementsKind kind = instr->hydrogen()->elements_kind(); |
AllocationSiteOverrideMode override_mode = |
(AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) |
@@ -3679,7 +3673,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); |
} |
} |