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

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

Issue 2633803002: [inspector] implemented blackboxing inside v8 (Closed)
Patch Set: one more test Created 3 years, 11 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/inspector/v8-debugger-script.cc
diff --git a/src/inspector/v8-debugger-script.cc b/src/inspector/v8-debugger-script.cc
index d6d15e5ae6d314988a18b4ea3fa21aaed99667da..ebae7ec0580478e6b4cdf8d0eb9b6795c3f7c6f5 100644
--- a/src/inspector/v8-debugger-script.cc
+++ b/src/inspector/v8-debugger-script.cc
@@ -148,6 +148,12 @@ class ActualScript : public V8DebuggerScript {
return script->GetPossibleBreakpoints(start, end, locations);
}
+ void blackboxStateChanged() override {
+ v8::HandleScope scope(m_isolate);
+ v8::Local<v8::debug::Script> script = m_script.Get(m_isolate);
+ script->BlackboxStateChanged();
+ }
+
private:
String16 GetNameOrSourceUrl(v8::Local<v8::debug::Script> script) {
v8::Local<v8::String> name;
@@ -197,6 +203,8 @@ class WasmVirtualScript : public V8DebuggerScript {
return false;
}
+ void blackboxStateChanged() override {}
+
private:
static const String16& emptyString() {
static const String16 singleEmptyString;

Powered by Google App Engine
This is Rietveld 408576698