Chromium Code Reviews

Unified Diff: src/inspector/v8-debugger.cc

Issue 2531163010: [inspector] Introduce debug::WasmScript (Closed)
Patch Set: Address comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/inspector/v8-debugger.cc
diff --git a/src/inspector/v8-debugger.cc b/src/inspector/v8-debugger.cc
index cbaa53fb4616c9b393d9c26319d9966f5deb78b4..6bde325a332e8439cb5ed76887dc90384a3e909e 100644
--- a/src/inspector/v8-debugger.cc
+++ b/src/inspector/v8-debugger.cc
@@ -57,7 +57,7 @@ V8Debugger::V8Debugger(v8::Isolate* isolate, V8InspectorImpl* inspector)
m_ignoreScriptParsedEventsCounter(0),
m_maxAsyncCallStackDepth(0),
m_pauseOnExceptionsState(v8::DebugInterface::NoBreakOnException),
- m_wasmTranslation(isolate, this) {}
+ m_wasmTranslation(isolate) {}
V8Debugger::~V8Debugger() {}
@@ -593,7 +593,8 @@ void V8Debugger::handleV8DebugEvent(
return;
}
if (script->IsWasm()) {
- m_wasmTranslation.AddScript(scriptWrapper.As<v8::Object>());
+ m_wasmTranslation.AddScript(script.As<v8::DebugInterface::WasmScript>(),
+ agent);
} else if (m_ignoreScriptParsedEventsCounter == 0) {
agent->didParseSource(
std::unique_ptr<V8DebuggerScript>(

Powered by Google App Engine