Index: src/ia32/regexp-macro-assembler-ia32.cc |
diff --git a/src/ia32/regexp-macro-assembler-ia32.cc b/src/ia32/regexp-macro-assembler-ia32.cc |
index 155526f3a05fb6785d207b69c7a513622175962f..1945bd63034f33ffb17b2325da010d2844e92dce 100644 |
--- a/src/ia32/regexp-macro-assembler-ia32.cc |
+++ b/src/ia32/regexp-macro-assembler-ia32.cc |
@@ -1076,7 +1076,8 @@ int RegExpMacroAssemblerIA32::CheckStackGuardState(Address* return_address, |
Code* re_code, |
Address re_frame) { |
Isolate* isolate = frame_entry<Isolate*>(re_frame, kIsolate); |
- if (isolate->stack_guard()->IsStackOverflow()) { |
+ StackLimitCheck check(isolate); |
+ if (check.JsHasOverflowed()) { |
isolate->StackOverflow(); |
return EXCEPTION; |
} |