| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 : JavaScriptFrame(iterator) {} | 245 : JavaScriptFrame(iterator) {} |
| 246 | 246 |
| 247 | 247 |
| 248 inline ArgumentsAdaptorFrame::ArgumentsAdaptorFrame( | 248 inline ArgumentsAdaptorFrame::ArgumentsAdaptorFrame( |
| 249 StackFrameIteratorBase* iterator) : JavaScriptFrame(iterator) { | 249 StackFrameIteratorBase* iterator) : JavaScriptFrame(iterator) { |
| 250 } | 250 } |
| 251 | 251 |
| 252 inline BuiltinFrame::BuiltinFrame(StackFrameIteratorBase* iterator) | 252 inline BuiltinFrame::BuiltinFrame(StackFrameIteratorBase* iterator) |
| 253 : JavaScriptFrame(iterator) {} | 253 : JavaScriptFrame(iterator) {} |
| 254 | 254 |
| 255 inline WasmFrame::WasmFrame(StackFrameIteratorBase* iterator) | 255 inline WasmCompiledFrame::WasmCompiledFrame(StackFrameIteratorBase* iterator) |
| 256 : StandardFrame(iterator) {} |
| 257 |
| 258 inline WasmInterpreterEntryFrame::WasmInterpreterEntryFrame( |
| 259 StackFrameIteratorBase* iterator) |
| 256 : StandardFrame(iterator) {} | 260 : StandardFrame(iterator) {} |
| 257 | 261 |
| 258 inline WasmToJsFrame::WasmToJsFrame(StackFrameIteratorBase* iterator) | 262 inline WasmToJsFrame::WasmToJsFrame(StackFrameIteratorBase* iterator) |
| 259 : StubFrame(iterator) {} | 263 : StubFrame(iterator) {} |
| 260 | 264 |
| 261 inline JsToWasmFrame::JsToWasmFrame(StackFrameIteratorBase* iterator) | 265 inline JsToWasmFrame::JsToWasmFrame(StackFrameIteratorBase* iterator) |
| 262 : StubFrame(iterator) {} | 266 : StubFrame(iterator) {} |
| 263 | 267 |
| 264 inline InternalFrame::InternalFrame(StackFrameIteratorBase* iterator) | 268 inline InternalFrame::InternalFrame(StackFrameIteratorBase* iterator) |
| 265 : StandardFrame(iterator) { | 269 : StandardFrame(iterator) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 return static_cast<StandardFrame*>(frame); | 308 return static_cast<StandardFrame*>(frame); |
| 305 } | 309 } |
| 306 | 310 |
| 307 bool StackTraceFrameIterator::is_javascript() const { | 311 bool StackTraceFrameIterator::is_javascript() const { |
| 308 return frame()->is_java_script(); | 312 return frame()->is_java_script(); |
| 309 } | 313 } |
| 310 | 314 |
| 311 bool StackTraceFrameIterator::is_wasm() const { return frame()->is_wasm(); } | 315 bool StackTraceFrameIterator::is_wasm() const { return frame()->is_wasm(); } |
| 312 | 316 |
| 313 JavaScriptFrame* StackTraceFrameIterator::javascript_frame() const { | 317 JavaScriptFrame* StackTraceFrameIterator::javascript_frame() const { |
| 314 DCHECK(is_javascript()); | 318 return JavaScriptFrame::cast(frame()); |
| 315 return static_cast<JavaScriptFrame*>(frame()); | |
| 316 } | 319 } |
| 317 | 320 |
| 318 WasmFrame* StackTraceFrameIterator::wasm_frame() const { | 321 WasmCompiledFrame* StackTraceFrameIterator::wasm_compiled_frame() const { |
| 319 DCHECK(is_wasm()); | 322 return WasmCompiledFrame::cast(frame()); |
| 320 return static_cast<WasmFrame*>(frame()); | |
| 321 } | 323 } |
| 322 | 324 |
| 323 inline StackFrame* SafeStackFrameIterator::frame() const { | 325 inline StackFrame* SafeStackFrameIterator::frame() const { |
| 324 DCHECK(!done()); | 326 DCHECK(!done()); |
| 325 DCHECK(frame_->is_java_script() || frame_->is_exit() || | 327 DCHECK(frame_->is_java_script() || frame_->is_exit() || |
| 326 frame_->is_builtin_exit()); | 328 frame_->is_builtin_exit()); |
| 327 return frame_; | 329 return frame_; |
| 328 } | 330 } |
| 329 | 331 |
| 330 | 332 |
| 331 } // namespace internal | 333 } // namespace internal |
| 332 } // namespace v8 | 334 } // namespace v8 |
| 333 | 335 |
| 334 #endif // V8_FRAMES_INL_H_ | 336 #endif // V8_FRAMES_INL_H_ |
| OLD | NEW |