| Index: src/crankshaft/x87/lithium-codegen-x87.cc
|
| diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc
|
| index 0f25b4b0ca3ac1b1e2a95c5f14e1d71f2cad3922..4c405337c687ce2129db1f62438e00f2729c00cb 100644
|
| --- a/src/crankshaft/x87/lithium-codegen-x87.cc
|
| +++ b/src/crankshaft/x87/lithium-codegen-x87.cc
|
| @@ -3845,14 +3845,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
|
| DCHECK(ToRegister(instr->result()).is(eax));
|
|
|
| __ Move(eax, Immediate(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(ebx, instr->hydrogen()->site());
|
| - } else {
|
| - __ mov(ebx, isolate()->factory()->undefined_value());
|
| - }
|
| + __ mov(ebx, instr->hydrogen()->site());
|
|
|
| ElementsKind kind = instr->hydrogen()->elements_kind();
|
| AllocationSiteOverrideMode override_mode =
|
| @@ -3886,7 +3879,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);
|
| }
|
| }
|
|
|