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

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

Issue 2735973006: Bindings: Separate WorldIdConstants into WorldTypes and WorldId (Closed)
Patch Set: rebase Created 3 years, 9 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 0d099ccade7b45cb3ee7e2b38107e2ec856cc787..b144754b892fdd449bc539a59eb3a38c9cb05a5f 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
@@ -449,7 +449,9 @@ void V8GCController::gcEpilogue(v8::Isolate* isolate,
void V8GCController::collectGarbage(v8::Isolate* isolate, bool onlyMinorGC) {
v8::HandleScope handleScope(isolate);
RefPtr<ScriptState> scriptState = ScriptState::create(
- v8::Context::New(isolate), DOMWrapperWorld::create(isolate));
+ v8::Context::New(isolate),
+ DOMWrapperWorld::create(isolate,
+ DOMWrapperWorld::WorldType::GarbageCollector));
ScriptState::Scope scope(scriptState.get());
StringBuilder builder;
builder.append("if (gc) gc(");

Powered by Google App Engine
This is Rietveld 408576698