| Index: src/crankshaft/s390/lithium-codegen-s390.cc
|
| diff --git a/src/crankshaft/s390/lithium-codegen-s390.cc b/src/crankshaft/s390/lithium-codegen-s390.cc
|
| index 09d4e79525a13213fd88e20d3c5f2bad0a579b79..3995dfdfc448ec73e63751709d7b29b4f12e0fe8 100644
|
| --- a/src/crankshaft/s390/lithium-codegen-s390.cc
|
| +++ b/src/crankshaft/s390/lithium-codegen-s390.cc
|
| @@ -3818,14 +3818,8 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
|
| DCHECK(ToRegister(instr->result()).is(r2));
|
|
|
| __ mov(r2, 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(r4, instr->hydrogen()->site());
|
| - } else {
|
| - __ LoadRoot(r4, Heap::kUndefinedValueRootIndex);
|
| - }
|
| + __ Move(r4, instr->hydrogen()->site());
|
| +
|
| ElementsKind kind = instr->hydrogen()->elements_kind();
|
| AllocationSiteOverrideMode override_mode =
|
| (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE)
|
| @@ -3857,7 +3851,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);
|
| }
|
| }
|
|
|