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

Unified Diff: third_party/WebKit/Source/platform/heap/PersistentNode.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/PersistentNode.h
diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.h b/third_party/WebKit/Source/platform/heap/PersistentNode.h
index 6fbc02a2bf4fbd6d680518ea8fcaec5e3fbe50bc..ee726283aa09231e152a1f25e7c69f0590c55fe4 100644
--- a/third_party/WebKit/Source/platform/heap/PersistentNode.h
+++ b/third_party/WebKit/Source/platform/heap/PersistentNode.h
@@ -23,7 +23,7 @@ class PersistentNode final {
public:
PersistentNode() : m_self(nullptr), m_trace(nullptr) { ASSERT(isUnused()); }
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
~PersistentNode() {
// If you hit this assert, it means that the thread finished
// without clearing persistent handles that the thread created.
@@ -214,7 +214,7 @@ class CrossThreadPersistentRegion final {
void tracePersistentNodes(Visitor* visitor) {
// If this assert triggers, you're tracing without being in a LockScope.
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
DCHECK(m_mutex.locked());
#endif
m_persistentRegion->tracePersistentNodes(
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Persistent.h ('k') | third_party/WebKit/Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698