Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 0a2c3ce554e7aab62102fa91b96617d69281b8b9..f3045d5c799ccc3dc427c44cae3394db425c49d6 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -3877,11 +3877,14 @@ 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); |
+ 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; |
@@ -3894,18 +3897,18 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
__ j(zero, &packed_case); |
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); |
} |
} |