Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 9cb92e810ca5b104fb9dd80724bfe257d237ff40..ae242100253966303535caedb39c0ed59a949224 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -5643,9 +5643,10 @@ void LCodeGen::DoStackCheck(LStackCheck* instr) { |
__ LoadRoot(ip, Heap::kStackLimitRootIndex); |
__ cmp(sp, Operand(ip)); |
__ b(hs, &done); |
- StackCheckStub stub; |
PredictableCodeSizeScope predictable(masm_, 2 * Assembler::kInstrSize); |
- CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
+ CallCode(isolate()->builtins()->StackCheck(), |
+ RelocInfo::CODE_TARGET, |
+ instr); |
EnsureSpaceForLazyDeopt(); |
last_lazy_deopt_pc_ = masm()->pc_offset(); |
__ bind(&done); |