Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 010433e163045013615104e5ce3ab69751252411..8ed7f55a059575386c547354c4b5c10b20e0b718 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -213,6 +213,13 @@ void MacroAssembler::RecordWrite(Register object, int offset, |
} |
+void MacroAssembler::StackLimitCheck(Label* on_stack_overflow) { |
+ cmp(esp, |
+ Operand::StaticVariable(ExternalReference::address_of_stack_limit())); |
+ j(below, on_stack_overflow); |
+} |
+ |
+ |
#ifdef ENABLE_DEBUGGER_SUPPORT |
void MacroAssembler::SaveRegistersToMemory(RegList regs) { |
ASSERT((regs & ~kJSCallerSaved) == 0); |