Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: src/debug/debug-interface.h

Issue 2531163010: [inspector] Introduce debug::WasmScript (Closed)
Patch Set: Fix expected output Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/api.cc ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/api.cc ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698