Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 72190e658570790bb5d4a49afbf5cb61d70409a6..3edea02a6f1483265a1ad4fc9b2f4fceb10e9dda 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -3874,10 +3874,9 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
(AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) |
? DISABLE_ALLOCATION_SITES |
: DONT_OVERRIDE; |
- ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; |
if (instr->arity() == 0) { |
- ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); |
+ ArrayNoArgumentConstructorStub stub(kind, override_mode); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
} else if (instr->arity() == 1) { |
Label done; |
@@ -3890,18 +3889,17 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
__ j(zero, &packed_case, Label::kNear); |
ElementsKind holey_kind = GetHoleyElementsKind(kind); |
- ArraySingleArgumentConstructorStub stub(holey_kind, context_mode, |
- override_mode); |
+ ArraySingleArgumentConstructorStub stub(holey_kind, override_mode); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
__ jmp(&done, Label::kNear); |
__ bind(&packed_case); |
} |
- ArraySingleArgumentConstructorStub stub(kind, context_mode, override_mode); |
+ ArraySingleArgumentConstructorStub stub(kind, override_mode); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
__ bind(&done); |
} else { |
- ArrayNArgumentsConstructorStub stub(kind, context_mode, override_mode); |
+ ArrayNArgumentsConstructorStub stub(kind, override_mode); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
} |
} |