OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_FRAMES_INL_H_ | 5 #ifndef V8_FRAMES_INL_H_ |
6 #define V8_FRAMES_INL_H_ | 6 #define V8_FRAMES_INL_H_ |
7 | 7 |
8 #include "src/frames.h" | 8 #include "src/frames.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/v8memory.h" | 10 #include "src/v8memory.h" |
(...skipping 58 matching lines...) Loading... |
69 return kind() == CATCH; | 69 return kind() == CATCH; |
70 } | 70 } |
71 | 71 |
72 | 72 |
73 inline bool StackHandler::is_finally() const { | 73 inline bool StackHandler::is_finally() const { |
74 return kind() == FINALLY; | 74 return kind() == FINALLY; |
75 } | 75 } |
76 | 76 |
77 | 77 |
78 inline StackHandler::Kind StackHandler::kind() const { | 78 inline StackHandler::Kind StackHandler::kind() const { |
79 const int offset = StackHandlerConstants::kStateOffset; | 79 const int offset = StackHandlerConstants::kStateIntOffset; |
80 return KindField::decode(Memory::unsigned_at(address() + offset)); | 80 return KindField::decode(Memory::unsigned_at(address() + offset)); |
81 } | 81 } |
82 | 82 |
83 | 83 |
84 inline unsigned StackHandler::index() const { | 84 inline unsigned StackHandler::index() const { |
85 const int offset = StackHandlerConstants::kStateOffset; | 85 const int offset = StackHandlerConstants::kStateIntOffset; |
86 return IndexField::decode(Memory::unsigned_at(address() + offset)); | 86 return IndexField::decode(Memory::unsigned_at(address() + offset)); |
87 } | 87 } |
88 | 88 |
89 | 89 |
90 inline Object** StackHandler::context_address() const { | 90 inline Object** StackHandler::context_address() const { |
91 const int offset = StackHandlerConstants::kContextOffset; | 91 const int offset = StackHandlerConstants::kContextOffset; |
92 return reinterpret_cast<Object**>(address() + offset); | 92 return reinterpret_cast<Object**>(address() + offset); |
93 } | 93 } |
94 | 94 |
95 | 95 |
(...skipping 229 matching lines...) Loading... |
325 inline StackFrame* SafeStackFrameIterator::frame() const { | 325 inline StackFrame* SafeStackFrameIterator::frame() const { |
326 DCHECK(!done()); | 326 DCHECK(!done()); |
327 DCHECK(frame_->is_java_script() || frame_->is_exit()); | 327 DCHECK(frame_->is_java_script() || frame_->is_exit()); |
328 return frame_; | 328 return frame_; |
329 } | 329 } |
330 | 330 |
331 | 331 |
332 } } // namespace v8::internal | 332 } } // namespace v8::internal |
333 | 333 |
334 #endif // V8_FRAMES_INL_H_ | 334 #endif // V8_FRAMES_INL_H_ |
OLD | NEW |