Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 6751be716081fa214dd8a3dc8189e4b9f2fcdfd5..3e559232737682972527e0800729c30a8d730d1a 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -4049,11 +4049,14 @@ 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); |
+ AllocationSiteOverrideMode override_mode = |
+ (AllocationSiteInfo::GetMode(kind) == TRACK_ALLOCATION_SITE) |
+ ? DISABLE_ALLOCATION_SITES |
+ : DONT_OVERRIDE; |
+ ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; |
if (instr->arity() == 0) { |
- ArrayNoArgumentConstructorStub stub(kind, disable_allocation_sites); |
+ ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
} else if (instr->arity() == 1) { |
Label done; |
@@ -4065,18 +4068,18 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
__ Branch(&packed_case, eq, t1, Operand(zero_reg)); |
ElementsKind holey_kind = GetHoleyElementsKind(kind); |
- ArraySingleArgumentConstructorStub stub(holey_kind, |
- disable_allocation_sites); |
+ ArraySingleArgumentConstructorStub stub(holey_kind, context_mode, |
+ override_mode); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
__ jmp(&done); |
__ bind(&packed_case); |
} |
- ArraySingleArgumentConstructorStub stub(kind, disable_allocation_sites); |
+ ArraySingleArgumentConstructorStub stub(kind, context_mode, override_mode); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
__ bind(&done); |
} else { |
- ArrayNArgumentsConstructorStub stub(kind, disable_allocation_sites); |
+ ArrayNArgumentsConstructorStub stub(kind, context_mode, override_mode); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
} |
} |