| Index: src/debug/debug-interface.h
|
| diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h
|
| index 6b5cb6221e9c85e3840efe25eae83eb28d04a5fd..e402b86b343bbde1fd356a5d983574e835ed6762 100644
|
| --- a/src/debug/debug-interface.h
|
| +++ b/src/debug/debug-interface.h
|
| @@ -176,14 +176,18 @@ class Script {
|
| int GetSourcePosition(const debug::Location& location) const;
|
| };
|
|
|
| -void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts);
|
| +// Specialization for wasm Scripts.
|
| +class WasmScript : public Script {
|
| + public:
|
| + static WasmScript* Cast(Script* script);
|
|
|
| -/**
|
| - * Compute the disassembly of a wasm function.
|
| - */
|
| -debug::WasmDisassembly DisassembleWasmFunction(Isolate* isolate,
|
| - v8::Local<v8::Object> script,
|
| - int function_index);
|
| + int NumFunctions() const;
|
| + int NumImportedFunctions() const;
|
| +
|
| + debug::WasmDisassembly DisassembleFunction(int function_index) const;
|
| +};
|
| +
|
| +void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts);
|
|
|
| MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate,
|
| Local<String> source);
|
|
|