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

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

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization 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: third_party/WebKit/Source/platform/heap/TraceTraits.h
diff --git a/third_party/WebKit/Source/platform/heap/TraceTraits.h b/third_party/WebKit/Source/platform/heap/TraceTraits.h
index 49f5b511591df1f4dc123637084d5fdcb9c7320d..11d4d8ce2041aefda877d924eb39adb694c33b5a 100644
--- a/third_party/WebKit/Source/platform/heap/TraceTraits.h
+++ b/third_party/WebKit/Source/platform/heap/TraceTraits.h
@@ -49,7 +49,7 @@ class AdjustAndMarkTrait<T, false> {
public:
template <typename VisitorDispatcher>
static void mark(VisitorDispatcher visitor, const T* t) {
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
assertObjectHasGCInfo(const_cast<T*>(t), GCInfoTrait<T>::index());
#endif
// Default mark method of the trait just calls the two-argument mark
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadState.cpp ('k') | third_party/WebKit/Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698