Index: src/arm64/regexp-macro-assembler-arm64.cc |
diff --git a/src/arm64/regexp-macro-assembler-arm64.cc b/src/arm64/regexp-macro-assembler-arm64.cc |
index f2363525c542b09d1f9bc37966224235d7fbb4e9..a772ef26408e653f42d97a4ae2a666a9d70eb4c1 100644 |
--- a/src/arm64/regexp-macro-assembler-arm64.cc |
+++ b/src/arm64/regexp-macro-assembler-arm64.cc |
@@ -1289,7 +1289,8 @@ int RegExpMacroAssemblerARM64::CheckStackGuardState(Address* return_address, |
const byte** input_start, |
const byte** input_end) { |
Isolate* isolate = frame_entry<Isolate*>(re_frame, kIsolate); |
- if (isolate->stack_guard()->IsStackOverflow()) { |
+ StackLimitCheck check(isolate); |
+ if (check.JsHasOverflowed()) { |
isolate->StackOverflow(); |
return EXCEPTION; |
} |