Revision 530af9cb deps/v8/src/isolate.h
deps/v8/src/isolate.h | ||
---|---|---|
1392 | 1392 |
public: |
1393 | 1393 |
explicit StackLimitCheck(Isolate* isolate) : isolate_(isolate) { } |
1394 | 1394 |
|
1395 |
bool HasOverflowed() const { |
|
1395 |
inline bool HasOverflowed() const {
|
|
1396 | 1396 |
StackGuard* stack_guard = isolate_->stack_guard(); |
1397 |
// Stack has overflowed in C++ code only if stack pointer exceeds the C++ |
|
1398 |
// stack guard and the limits are not set to interrupt values. |
|
1399 |
// TODO(214): Stack overflows are ignored if a interrupt is pending. This |
|
1400 |
// code should probably always use the initial C++ limit. |
|
1401 |
return (reinterpret_cast<uintptr_t>(this) < stack_guard->climit()) && |
|
1402 |
stack_guard->IsStackOverflow(); |
|
1397 |
return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); |
|
1403 | 1398 |
} |
1404 | 1399 |
private: |
1405 | 1400 |
Isolate* isolate_; |
Also available in: Unified diff