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

Unified Diff: third_party/WebKit/Source/platform/heap/ThreadState.h

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 | « third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/ThreadState.h
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.h b/third_party/WebKit/Source/platform/heap/ThreadState.h
index 09d6860c233ee2ad5affdf967f36c1f8eca47126..aafbf309c7088989073e0210016f669032b37775 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.h
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.h
@@ -437,6 +437,9 @@ class PLATFORM_EXPORT ThreadState {
void (*invalidateDeadObjectsInWrappersMarkingDeque)(v8::Isolate*),
void (*performCleanup)(v8::Isolate*)) {
m_isolate = isolate;
+ DCHECK(!m_isolate || traceDOMWrappers);
+ DCHECK(!m_isolate || invalidateDeadObjectsInWrappersMarkingDeque);
+ DCHECK(!m_isolate || performCleanup);
m_traceDOMWrappers = traceDOMWrappers;
m_invalidateDeadObjectsInWrappersMarkingDeque =
invalidateDeadObjectsInWrappersMarkingDeque;
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698