|
@ -1392,14 +1392,9 @@ class StackLimitCheck BASE_EMBEDDED { |
|
|
public: |
|
|
public: |
|
|
explicit StackLimitCheck(Isolate* isolate) : isolate_(isolate) { } |
|
|
explicit StackLimitCheck(Isolate* isolate) : isolate_(isolate) { } |
|
|
|
|
|
|
|
|
bool HasOverflowed() const { |
|
|
inline bool HasOverflowed() const { |
|
|
StackGuard* stack_guard = isolate_->stack_guard(); |
|
|
StackGuard* stack_guard = isolate_->stack_guard(); |
|
|
// Stack has overflowed in C++ code only if stack pointer exceeds the C++
|
|
|
return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); |
|
|
// stack guard and the limits are not set to interrupt values.
|
|
|
|
|
|
// TODO(214): Stack overflows are ignored if a interrupt is pending. This
|
|
|
|
|
|
// code should probably always use the initial C++ limit.
|
|
|
|
|
|
return (reinterpret_cast<uintptr_t>(this) < stack_guard->climit()) && |
|
|
|
|
|
stack_guard->IsStackOverflow(); |
|
|
|
|
|
} |
|
|
} |
|
|
private: |
|
|
private: |
|
|
Isolate* isolate_; |
|
|
Isolate* isolate_; |
|
|