| Index: src/frames-inl.h
|
| diff --git a/src/frames-inl.h b/src/frames-inl.h
|
| index cf31a482c14fcbfc4faa7bdec1895a2c529b544d..766c468f08f541e295d24ce1e80111eaa5aca935 100644
|
| --- a/src/frames-inl.h
|
| +++ b/src/frames-inl.h
|
| @@ -59,6 +59,11 @@ inline StackHandler* StackHandler::next() const {
|
| }
|
|
|
|
|
| +inline Code* StackHandler::code() const {
|
| + return Code::cast(*code_address());
|
| +}
|
| +
|
| +
|
| inline bool StackHandler::includes(Address address) const {
|
| Address start = this->address();
|
| Address end = start + StackHandlerConstants::kSize;
|
| @@ -83,7 +88,7 @@ inline bool StackHandler::is_js_entry() const {
|
|
|
|
|
| inline bool StackHandler::is_catch() const {
|
| - return kind() == CATCH;
|
| + return kind() == CATCH || kind() == OPTIMIZED_CATCH;
|
| }
|
|
|
|
|
| @@ -92,6 +97,11 @@ inline bool StackHandler::is_finally() const {
|
| }
|
|
|
|
|
| +inline bool StackHandler::is_optimized() const {
|
| + return (kind() & kIsOptimizedMask) != 0;
|
| +}
|
| +
|
| +
|
| inline StackHandler::Kind StackHandler::kind() const {
|
| const int offset = StackHandlerConstants::kStateOffset;
|
| return KindField::decode(Memory::unsigned_at(address() + offset));
|
|
|