| Index: src/isolate.h
|
| diff --git a/src/isolate.h b/src/isolate.h
|
| index 9d450d390da8723019770ba69a0399c1f65d8cd0..90cf4c63d6ce0542e06bca436fcdb3d23bdbceb2 100644
|
| --- a/src/isolate.h
|
| +++ b/src/isolate.h
|
| @@ -1482,6 +1482,15 @@ class StackLimitCheck BASE_EMBEDDED {
|
| Isolate* isolate_;
|
| };
|
|
|
| +#define STACK_CHECK(isolate, result_value) \
|
| + do { \
|
| + StackLimitCheck stack_check(isolate); \
|
| + if (stack_check.HasOverflowed()) { \
|
| + isolate->Throw(*isolate->factory()->NewRangeError( \
|
| + MessageTemplate::kStackOverflow)); \
|
| + return result_value; \
|
| + } \
|
| + } while (false)
|
|
|
| // Support for temporarily postponing interrupts. When the outermost
|
| // postpone scope is left the interrupts will be re-enabled and any
|
|
|