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

Unified Diff: src/api.cc

Issue 2536763002: [inspector] [wasm] Implement GetPossibleBreakpoints (Closed)
Patch Set: Rebase 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
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index d5a53b6701f158b82ed301f51c087cba3a2df58a..b19a3eef8270193b44d356217f768498d4f405df 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -8972,8 +8972,9 @@ bool DebugInterface::Script::GetPossibleBreakpoints(
CHECK(!start.IsEmpty());
i::Handle<i::Script> script = Utils::OpenHandle(this);
if (script->type() == i::Script::TYPE_WASM) {
- // TODO(clemensh): Return the proper thing once we support wasm breakpoints.
- return false;
+ i::Handle<i::WasmCompiledModule> compiled_module(
+ i::WasmCompiledModule::cast(script->wasm_compiled_module()));
+ return compiled_module->GetPossibleBreakpoints(start, end, locations);
}
i::Script::InitLineEnds(script);
« no previous file with comments | « no previous file | src/inspector/v8-debugger-script.h » ('j') | test/inspector/debugger/wasm-get-breakable-locations.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698