Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: src/frames.h

Issue 1839843002: wasm: implemente WasmFrame::cast, fix inheritance (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix leftover bad change Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/frames-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.h
diff --git a/src/frames.h b/src/frames.h
index ccf069c8c1322dec4002ded85b47880a60064626..f6806d7563ba89b83bc1f60cd517de9cb3edffee 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -961,6 +961,11 @@ class WasmFrame : public StandardFrame {
// Determine the code for the frame.
Code* unchecked_code() const override;
+ static WasmFrame* cast(StackFrame* frame) {
+ DCHECK(frame->is_wasm());
+ return static_cast<WasmFrame*>(frame);
+ }
+
protected:
inline explicit WasmFrame(StackFrameIteratorBase* iterator);
@@ -970,7 +975,7 @@ class WasmFrame : public StandardFrame {
friend class StackFrameIteratorBase;
};
-class WasmToJsFrame : public WasmFrame {
+class WasmToJsFrame : public StubFrame {
public:
Type type() const override { return WASM_TO_JS; }
@@ -981,7 +986,7 @@ class WasmToJsFrame : public WasmFrame {
friend class StackFrameIteratorBase;
};
-class JsToWasmFrame : public WasmFrame {
+class JsToWasmFrame : public StubFrame {
public:
Type type() const override { return JS_TO_WASM; }
« no previous file with comments | « no previous file | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698