Index: src/crankshaft/ppc/lithium-codegen-ppc.cc |
diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
index 4bdb85fbedf5d3c51ae61a1fbf46d93c47af3368..2cd27f25165c89c7aa4aae38ae24271f279a87ee 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -3920,14 +3920,8 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
DCHECK(ToRegister(instr->result()).is(r3)); |
__ mov(r3, 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. |
- __ Move(r5, instr->hydrogen()->site()); |
- } else { |
- __ LoadRoot(r5, Heap::kUndefinedValueRootIndex); |
- } |
+ __ Move(r5, instr->hydrogen()->site()); |
+ |
ElementsKind kind = instr->hydrogen()->elements_kind(); |
AllocationSiteOverrideMode override_mode = |
(AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) |
@@ -3959,7 +3953,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); |
} |
} |