| 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/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 inline EntryConstructFrame::EntryConstructFrame( | 91 inline EntryConstructFrame::EntryConstructFrame( |
| 92 StackFrameIteratorBase* iterator) | 92 StackFrameIteratorBase* iterator) |
| 93 : EntryFrame(iterator) { | 93 : EntryFrame(iterator) { |
| 94 } | 94 } |
| 95 | 95 |
| 96 | 96 |
| 97 inline ExitFrame::ExitFrame(StackFrameIteratorBase* iterator) | 97 inline ExitFrame::ExitFrame(StackFrameIteratorBase* iterator) |
| 98 : StackFrame(iterator) { | 98 : StackFrame(iterator) { |
| 99 } | 99 } |
| 100 | 100 |
| 101 inline BuiltinExitFrame::BuiltinExitFrame(StackFrameIteratorBase* iterator) |
| 102 : ExitFrame(iterator) {} |
| 103 |
| 104 inline Object* BuiltinExitFrame::function_slot_object() const { |
| 105 return Memory::Object_at(fp() + BuiltinExitFrameConstants::kTargetOffset); |
| 106 } |
| 101 | 107 |
| 102 inline StandardFrame::StandardFrame(StackFrameIteratorBase* iterator) | 108 inline StandardFrame::StandardFrame(StackFrameIteratorBase* iterator) |
| 103 : StackFrame(iterator) { | 109 : StackFrame(iterator) { |
| 104 } | 110 } |
| 105 | 111 |
| 106 | 112 |
| 107 inline Object* StandardFrame::GetExpression(int index) const { | 113 inline Object* StandardFrame::GetExpression(int index) const { |
| 108 return Memory::Object_at(GetExpressionAddress(index)); | 114 return Memory::Object_at(GetExpressionAddress(index)); |
| 109 } | 115 } |
| 110 | 116 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 return static_cast<JavaScriptFrame*>(frame()); | 305 return static_cast<JavaScriptFrame*>(frame()); |
| 300 } | 306 } |
| 301 | 307 |
| 302 WasmFrame* StackTraceFrameIterator::wasm_frame() const { | 308 WasmFrame* StackTraceFrameIterator::wasm_frame() const { |
| 303 DCHECK(is_wasm()); | 309 DCHECK(is_wasm()); |
| 304 return static_cast<WasmFrame*>(frame()); | 310 return static_cast<WasmFrame*>(frame()); |
| 305 } | 311 } |
| 306 | 312 |
| 307 inline StackFrame* SafeStackFrameIterator::frame() const { | 313 inline StackFrame* SafeStackFrameIterator::frame() const { |
| 308 DCHECK(!done()); | 314 DCHECK(!done()); |
| 309 DCHECK(frame_->is_java_script() || frame_->is_exit()); | 315 DCHECK(frame_->is_java_script() || frame_->is_exit() || |
| 316 frame_->is_builtin_exit()); |
| 310 return frame_; | 317 return frame_; |
| 311 } | 318 } |
| 312 | 319 |
| 313 | 320 |
| 314 } // namespace internal | 321 } // namespace internal |
| 315 } // namespace v8 | 322 } // namespace v8 |
| 316 | 323 |
| 317 #endif // V8_FRAMES_INL_H_ | 324 #endif // V8_FRAMES_INL_H_ |
| OLD | NEW |