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

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

Issue 2610853002: [wrapper-tracing] Enable cleanup and invalidating on WorkerBackingThread (Closed)
Patch Set: Address comment 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
index 6b98a684a268f01552d479252eb08a38b3b0f658..b49db8f4544d9fcc501eebe93b9c73c89e957656 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
@@ -424,15 +424,10 @@ void V8Initializer::initializeMainThread() {
ASSERT(ThreadState::mainThreadState());
ThreadState::mainThreadState()->addInterruptor(
WTF::makeUnique<V8IsolateInterruptor>(isolate));
- if (RuntimeEnabledFeatures::traceWrappablesEnabled()) {
- ThreadState::mainThreadState()->registerTraceDOMWrappers(
- isolate, V8GCController::traceDOMWrappers,
- ScriptWrappableVisitor::invalidateDeadObjectsInMarkingDeque,
- ScriptWrappableVisitor::performCleanup);
- } else {
- ThreadState::mainThreadState()->registerTraceDOMWrappers(
- isolate, V8GCController::traceDOMWrappers, nullptr, nullptr);
- }
+ ThreadState::mainThreadState()->registerTraceDOMWrappers(
+ isolate, V8GCController::traceDOMWrappers,
+ ScriptWrappableVisitor::invalidateDeadObjectsInMarkingDeque,
+ ScriptWrappableVisitor::performCleanup);
V8PerIsolateData::from(isolate)->setThreadDebugger(
WTF::makeUnique<MainThreadDebugger>(isolate));
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698