Index: src/wasm/wasm-module.h |
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h |
index 388a7ee832ddec92a232e62fc20e85e5d2d7563a..2660266bc3bea1c1e88ab4ba010d983e87b09f3c 100644 |
--- a/src/wasm/wasm-module.h |
+++ b/src/wasm/wasm-module.h |
@@ -528,6 +528,12 @@ 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 table mapping byte offsets to line and |
+// column in the disassembly. |
+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, |