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

Unified Diff: src/frames.h

Issue 2555243002: [wasm] Fix location for error in asm.js ToNumber conversion (Closed)
Patch Set: No need to store parent in VisitCall Created 4 years 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
Index: src/frames.h
diff --git a/src/frames.h b/src/frames.h
index cce636e2c295defae8076e47796d1bac8b765bc0..ddb2f5a937701c426842bfeb9d06fb09ca0d6f8a 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -562,6 +562,8 @@ class StackFrame BASE_EMBEDDED {
void operator=(const StackFrame& original) = delete;
protected:
+ const StackFrameIteratorBase* iterator_;
+
inline explicit StackFrame(StackFrameIteratorBase* iterator);
virtual ~StackFrame() { }
@@ -581,7 +583,6 @@ class StackFrame BASE_EMBEDDED {
#endif
private:
- const StackFrameIteratorBase* iterator_;
Isolate* isolate_;
State state_;
@@ -1106,6 +1107,7 @@ class WasmFrame : public StandardFrame {
uint32_t function_index() const;
Script* script() const override;
int position() const override;
+ bool at_to_number_conversion() const;
static WasmFrame* cast(StackFrame* frame) {
DCHECK(frame->is_wasm());
@@ -1129,6 +1131,8 @@ class WasmToJsFrame : public StubFrame {
inline explicit WasmToJsFrame(StackFrameIteratorBase* iterator);
private:
+ void ComputeCallerState(State* state) const override;
+
friend class StackFrameIteratorBase;
};

Powered by Google App Engine
This is Rietveld 408576698