| Index: src/debug/debug-interface.h
|
| diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h
|
| index 443ed4232fe436b9f815895a29fe1d19ab41394c..752bc17d953b29936702ca381f3acbdb09f09b1e 100644
|
| --- a/src/debug/debug-interface.h
|
| +++ b/src/debug/debug-interface.h
|
| @@ -179,6 +179,7 @@ class DebugInterface {
|
| MaybeLocal<String> SourceMappingURL() const;
|
| MaybeLocal<String> ContextData() const;
|
| MaybeLocal<String> Source() const;
|
| + bool IsWasm() const;
|
| bool GetPossibleBreakpoints(const Location& start, const Location& end,
|
| std::vector<Location>* locations) const;
|
|
|
| @@ -202,6 +203,16 @@ class DebugInterface {
|
| */
|
| static void GetLoadedScripts(Isolate* isolate,
|
| PersistentValueVector<Script>& scripts);
|
| +
|
| + /**
|
| + * 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.
|
| + */
|
| + static std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>>
|
| + DisassembleWasmFunction(Isolate* isolate, v8::Local<v8::Object> script,
|
| + int function_index);
|
| };
|
|
|
| } // namespace v8
|
|
|