| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index 06a6506b2216580401c8b666ad6de2499d1bc14a..d1f671e40a4cc968554079fb9a89aeafb59f23e5 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -4230,14 +4230,17 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
|
| __ mov(r0, Operand(instr->arity()));
|
| __ mov(r2, Operand(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);
|
| }
|
| }
|
|
|