OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 v->VisitPointer(context_address()); | 70 v->VisitPointer(context_address()); |
71 v->VisitPointer(code_address()); | 71 v->VisitPointer(code_address()); |
72 } | 72 } |
73 | 73 |
74 | 74 |
75 inline StackHandler* StackHandler::FromAddress(Address address) { | 75 inline StackHandler* StackHandler::FromAddress(Address address) { |
76 return reinterpret_cast<StackHandler*>(address); | 76 return reinterpret_cast<StackHandler*>(address); |
77 } | 77 } |
78 | 78 |
79 | 79 |
80 inline bool StackHandler::is_entry() const { | 80 inline bool StackHandler::is_js_entry() const { |
81 return kind() == ENTRY; | 81 return kind() == JS_ENTRY; |
82 } | 82 } |
83 | 83 |
84 | 84 |
85 inline bool StackHandler::is_try_catch() const { | 85 inline bool StackHandler::is_catch() const { |
86 return kind() == TRY_CATCH; | 86 return kind() == CATCH; |
87 } | 87 } |
88 | 88 |
89 | 89 |
90 inline bool StackHandler::is_try_finally() const { | 90 inline bool StackHandler::is_finally() const { |
91 return kind() == TRY_FINALLY; | 91 return kind() == FINALLY; |
92 } | 92 } |
93 | 93 |
94 | 94 |
95 inline StackHandler::Kind StackHandler::kind() const { | 95 inline StackHandler::Kind StackHandler::kind() const { |
96 const int offset = StackHandlerConstants::kStateOffset; | 96 const int offset = StackHandlerConstants::kStateOffset; |
97 return KindField::decode(Memory::unsigned_at(address() + offset)); | 97 return KindField::decode(Memory::unsigned_at(address() + offset)); |
98 } | 98 } |
99 | 99 |
100 | 100 |
101 inline Object** StackHandler::context_address() const { | 101 inline Object** StackHandler::context_address() const { |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 template<typename Iterator> | 319 template<typename Iterator> |
320 void JavaScriptFrameIteratorTemp<Iterator>::Reset() { | 320 void JavaScriptFrameIteratorTemp<Iterator>::Reset() { |
321 iterator_.Reset(); | 321 iterator_.Reset(); |
322 if (!done()) Advance(); | 322 if (!done()) Advance(); |
323 } | 323 } |
324 | 324 |
325 | 325 |
326 } } // namespace v8::internal | 326 } } // namespace v8::internal |
327 | 327 |
328 #endif // V8_FRAMES_INL_H_ | 328 #endif // V8_FRAMES_INL_H_ |
OLD | NEW |