Index: src/frames-inl.h |
diff --git a/src/frames-inl.h b/src/frames-inl.h |
index 61d0dcd66374feb66bef36bae6e719a9d5ecc920..59c81c141730aa85d6cc72e247eb02b742e68cb7 100644 |
--- a/src/frames-inl.h |
+++ b/src/frames-inl.h |
@@ -252,7 +252,11 @@ inline ArgumentsAdaptorFrame::ArgumentsAdaptorFrame( |
inline BuiltinFrame::BuiltinFrame(StackFrameIteratorBase* iterator) |
: JavaScriptFrame(iterator) {} |
-inline WasmFrame::WasmFrame(StackFrameIteratorBase* iterator) |
+inline WasmCompiledFrame::WasmCompiledFrame(StackFrameIteratorBase* iterator) |
+ : StandardFrame(iterator) {} |
+ |
+inline WasmInterpreterEntryFrame::WasmInterpreterEntryFrame( |
+ StackFrameIteratorBase* iterator) |
: StandardFrame(iterator) {} |
inline WasmToJsFrame::WasmToJsFrame(StackFrameIteratorBase* iterator) |
@@ -311,13 +315,11 @@ bool StackTraceFrameIterator::is_javascript() const { |
bool StackTraceFrameIterator::is_wasm() const { return frame()->is_wasm(); } |
JavaScriptFrame* StackTraceFrameIterator::javascript_frame() const { |
- DCHECK(is_javascript()); |
- return static_cast<JavaScriptFrame*>(frame()); |
+ return JavaScriptFrame::cast(frame()); |
} |
-WasmFrame* StackTraceFrameIterator::wasm_frame() const { |
- DCHECK(is_wasm()); |
- return static_cast<WasmFrame*>(frame()); |
+WasmCompiledFrame* StackTraceFrameIterator::wasm_compiled_frame() const { |
+ return WasmCompiledFrame::cast(frame()); |
} |
inline StackFrame* SafeStackFrameIterator::frame() const { |