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( |