Index: src/wasm/wasm-module.h |
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h |
index e22c4570274a7581dc629bb11c814ea1fb3a7022..ce01f56e04951b1e62b139c97f86365bce545f4b 100644 |
--- a/src/wasm/wasm-module.h |
+++ b/src/wasm/wasm-module.h |
@@ -387,6 +387,13 @@ bool WasmIsAsmJs(Object* instance, Isolate* isolate); |
// it's of type TYPE_WASM. |
Handle<Script> GetScript(Handle<JSObject> instance); |
+// Compute the disassembly of a wasm function. |
+// Returns the disassembly string and a list of <byte_offset, line, column> |
+// entries, mapping wasm byte offsets to line and column in the disassembly. |
+// The list is guaranteed to be ordered by the byte_offset. |
+std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> |
+DisassembleFunction(Handle<WasmCompiledModule> compiled_module, int func_index); |
+ |
// Get the asm.js source position for the given byte offset in the given |
// function. |
int GetAsmWasmSourcePosition(Handle<JSObject> instance, int func_index, |