Chromium Code Reviews| Index: src/wasm/wasm-module.h |
| diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h |
| index 2ad46e21b62b020a3252206504fd30339b5cdc3c..6fc1e4c338b83b70816842e1b2badb3148aae7a5 100644 |
| --- a/src/wasm/wasm-module.h |
| +++ b/src/wasm/wasm-module.h |
| @@ -395,6 +395,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. |
|
titzer
2016/11/16 14:23:59
Format isn't totally clear from the comment.
Mayb
Clemens Hammacher
2016/11/16 15:21:19
Done.
|
| +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, |