Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index e7e032701e2c6c99c0038d614b674d881cbd9e2c..15b099092109ec41d6835e2c5172e7c9c183c003 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -6430,8 +6430,9 @@ void LCodeGen::DoStackCheck(LStackCheck* instr) { |
ASSERT(instr->context()->IsRegister()); |
ASSERT(ToRegister(instr->context()).is(esi)); |
- StackCheckStub stub; |
- CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
+ CallCode(isolate()->builtins()->StackCheck(), |
+ RelocInfo::CODE_TARGET, |
+ instr); |
EnsureSpaceForLazyDeopt(); |
__ bind(&done); |
RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); |