| Index: src/isolate.h
|
| diff --git a/src/isolate.h b/src/isolate.h
|
| index ef1dd30b227b1ec9a263d27c85ce1ec940715b32..b1c1b48b1a9b09310d9a09ce27d8b84a49a998ea 100644
|
| --- a/src/isolate.h
|
| +++ b/src/isolate.h
|
| @@ -1449,6 +1449,11 @@ class StackLimitCheck BASE_EMBEDDED {
|
| StackGuard* stack_guard = isolate_->stack_guard();
|
| return (reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit());
|
| }
|
| + bool WillOverflow(uint32_t additionalUsage) const {
|
| + StackGuard* stack_guard = isolate_->stack_guard();
|
| + return (reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit() +
|
| + additionalUsage);
|
| + }
|
| private:
|
| Isolate* isolate_;
|
| };
|
|
|