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

Unified Diff: src/wasm/wasm-module.cc

Issue 2069823003: [wasm] Enable wasm frame inspection for debugging (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@split-wasm-debug
Patch Set: fix gcmole reports Created 4 years, 6 months 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
Index: src/wasm/wasm-module.cc
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
index 285c9cb5cb6e9ec78588b4b031e9c10b8c89fa2e..4c6318273311849994141ce7a0faae38de3d2bbb 100644
--- a/src/wasm/wasm-module.cc
+++ b/src/wasm/wasm-module.cc
@@ -1063,6 +1063,12 @@ WasmDebugInfo* GetDebugInfo(JSObject* wasm) {
return *new_info;
}
+int GetNumberOfFunctions(JSObject* wasm) {
+ Object* func_names_obj = wasm->GetInternalField(kWasmFunctionNamesArray);
+ // TODO(clemensh): this looks inside an array constructed elsewhere. Refactor.
+ return ByteArray::cast(func_names_obj)->get_int(0);
+}
+
} // namespace wasm
} // namespace internal
} // namespace v8
« src/debug/mirrors.js ('K') | « src/wasm/wasm-module.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698