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

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

Issue 2493773003: [inspector] Introduce translation of wasm frames (Closed)
Patch Set: Very last-minute changes Created 4 years, 1 month 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/BUILD.gn » ('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 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
« no previous file with comments | « src/api.cc ('k') | src/inspector/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698