| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index c94af7d909734ff1554e1a311bfacb0f02117ced..767714945217f9ba9a1b2109112c73a69a83d234 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -3936,14 +3936,17 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
|
| __ Set(rax, instr->arity());
|
| __ Move(rbx, instr->hydrogen()->property_cell());
|
| ElementsKind kind = instr->hydrogen()->elements_kind();
|
| + bool disable_allocation_sites =
|
| + (AllocationSiteInfo::GetMode(kind) == TRACK_ALLOCATION_SITE);
|
| +
|
| if (instr->arity() == 0) {
|
| - ArrayNoArgumentConstructorStub stub(kind);
|
| + ArrayNoArgumentConstructorStub stub(kind, disable_allocation_sites);
|
| CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
|
| } else if (instr->arity() == 1) {
|
| - ArraySingleArgumentConstructorStub stub(kind);
|
| + ArraySingleArgumentConstructorStub stub(kind, disable_allocation_sites);
|
| CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
|
| } else {
|
| - ArrayNArgumentsConstructorStub stub(kind);
|
| + ArrayNArgumentsConstructorStub stub(kind, disable_allocation_sites);
|
| CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
|
| }
|
| }
|
|
|