Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index 4fc2fb4f6d82c274d7bd52f1807ba7b288790c50..15e25dd4385b029999f5b7bf668af89572797d7c 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -1418,7 +1418,7 @@ class StackLimitCheck BASE_EMBEDDED { |
// Use this to check for stack-overflows in C++ code. |
inline bool HasOverflowed() const { |
StackGuard* stack_guard = isolate_->stack_guard(); |
- return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); |
+ return GetCurrentStackPosition() < stack_guard->real_climit(); |
} |
// Use this to check for stack-overflow when entering runtime from JS code. |