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

Unified Diff: src/frames.h

Issue 2413693003: [wasm] Stack inspection support for asm.js frames (Closed)
Patch Set: Created 4 years, 2 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 | « src/debug/mirrors.js ('k') | src/frames.cc » ('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 373f4de92c63309290940ae06f6ff48f87fc706b..b363b90dc29f02d4a6335509818fab0c0d86547d 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -734,6 +734,7 @@ class StandardFrame : public StackFrame {
virtual Object* receiver() const;
virtual Script* script() const;
virtual Object* context() const;
+ virtual int position() const;
// Access the expressions in the stack frame including locals.
inline Object* GetExpression(int index) const;
@@ -957,6 +958,9 @@ class InterpretedFrame : public JavaScriptFrame {
public:
Type type() const override { return INTERPRETED; }
+ // Accessors.
+ int position() const override;
+
// Lookup exception handler for current {pc}, returns -1 if none found.
int LookupExceptionHandlerInTable(
int* data, HandlerTable::CatchPrediction* prediction) override;
@@ -1067,6 +1071,7 @@ class WasmFrame : public StandardFrame {
Object* wasm_obj() const;
uint32_t function_index() const;
Script* script() const override;
+ int position() const override;
static WasmFrame* cast(StackFrame* frame) {
DCHECK(frame->is_wasm());
« no previous file with comments | « src/debug/mirrors.js ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698