| Index: src/isolate.h
|
| diff --git a/src/isolate.h b/src/isolate.h
|
| index 5339bcce5a0b4f656f6a85bd19f56f442c1c406b..e2187be3f9f05ee48de99971ee8aaba47366d466 100644
|
| --- a/src/isolate.h
|
| +++ b/src/isolate.h
|
| @@ -1478,11 +1478,17 @@ class StackLimitCheck BASE_EMBEDDED {
|
| explicit StackLimitCheck(Isolate* isolate) : isolate_(isolate) { }
|
|
|
| // Use this to check for stack-overflows in C++ code.
|
| - inline bool HasOverflowed() const {
|
| + bool HasOverflowed() const {
|
| StackGuard* stack_guard = isolate_->stack_guard();
|
| return GetCurrentStackPosition() < stack_guard->real_climit();
|
| }
|
|
|
| + // Use this to check for interrupt request in C++ code.
|
| + bool InterruptRequested() {
|
| + StackGuard* stack_guard = isolate_->stack_guard();
|
| + return GetCurrentStackPosition() < stack_guard->climit();
|
| + }
|
| +
|
| // Use this to check for stack-overflow when entering runtime from JS code.
|
| bool JsHasOverflowed(uintptr_t gap = 0) const;
|
|
|
|
|