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

Unified Diff: src/wasm/wasm-debug.h

Issue 2069823003: [wasm] Enable wasm frame inspection for debugging (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@split-wasm-debug
Patch Set: Add two DCHECKs Created 4 years, 6 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/runtime/runtime-liveedit.cc ('k') | src/wasm/wasm-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-debug.h
diff --git a/src/wasm/wasm-debug.h b/src/wasm/wasm-debug.h
index 48dc4be6ec5e2dd800b9d91f144a45420f6bd839..965995127122cbbc599a7089f4b6d4a10e5db478 100644
--- a/src/wasm/wasm-debug.h
+++ b/src/wasm/wasm-debug.h
@@ -23,11 +23,16 @@ class WasmDebugInfo : public FixedArray {
bool SetBreakPoint(int byte_offset);
+ // Get the Script for the specified function.
+ static Script* GetFunctionScript(Handle<WasmDebugInfo> debug_info,
+ int func_index);
+
// Disassemble the specified function from this module.
static Handle<String> DisassembleFunction(Handle<WasmDebugInfo> debug_info,
int func_index);
- // Get the offset table for the specified function.
+ // Get the offset table for the specified function, mapping from byte offsets
+ // to position in the disassembly.
// Returns an array with three entries per instruction: byte offset, line and
// column.
static Handle<FixedArray> GetFunctionOffsetTable(
« no previous file with comments | « src/runtime/runtime-liveedit.cc ('k') | src/wasm/wasm-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698