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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp

Issue 2962353002: Add probe for V8.Complie (Closed)
Patch Set: correct executionContext usage Created 3 years, 5 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: third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
index 334d0b2ef2bdc49274cacdb9dbe784fde0092b0c..9963a4e5bbf9fff1765248ba2443a674f314407b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
@@ -465,6 +465,7 @@ void V8GCController::CollectGarbage(v8::Isolate* isolate, bool only_minor_gc) {
builder.Append(only_minor_gc ? "true" : "false");
builder.Append(")");
V8ScriptRunner::CompileAndRunInternalScript(
+ ExecutionContext::From(script_state.Get()),
V8String(isolate, builder.ToString()), isolate);
script_state->DisposePerContextData();
}

Powered by Google App Engine
This is Rietveld 408576698