| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index bcb6f1a771b84fa58454f171c31ae1267acab049..e1b01b37028b417dfc201a9e6e99ebe6d69ad99f 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -3920,14 +3920,17 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
|
| __ li(a0, Operand(instr->arity()));
|
| __ li(a2, 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);
|
| }
|
| }
|
|
|