Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index ce662858f88be8e1511f9c21f69155fc13a8e9c5..fd9bf1897124c31190ada3ba5b371ff4a38bd428 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -5419,8 +5419,9 @@ void LCodeGen::DoStackCheck(LStackCheck* instr) { |
Label done; |
__ CompareRoot(rsp, Heap::kStackLimitRootIndex); |
__ j(above_equal, &done, Label::kNear); |
- StackCheckStub stub; |
- CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
+ CallCode(isolate()->builtins()->StackCheck(), |
+ RelocInfo::CODE_TARGET, |
+ instr); |
EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); |
last_lazy_deopt_pc_ = masm()->pc_offset(); |
__ bind(&done); |