Index: src/arm/regexp-macro-assembler-arm.cc |
diff --git a/src/arm/regexp-macro-assembler-arm.cc b/src/arm/regexp-macro-assembler-arm.cc |
index 7fa3ce7b0c2e22eec6cf0555cc9424c1a40e9d43..e494305ac01161cd67c1db8257c7c8c73e805479 100644 |
--- a/src/arm/regexp-macro-assembler-arm.cc |
+++ b/src/arm/regexp-macro-assembler-arm.cc |
@@ -1044,7 +1044,8 @@ int RegExpMacroAssemblerARM::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; |
} |