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

Unified Diff: third_party/WebKit/Source/platform/heap/ThreadState.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/ThreadState.h
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.h b/third_party/WebKit/Source/platform/heap/ThreadState.h
index 622d0c201d3dde6660bb7286d7e19096d39b33f9..8769d2b77cfee3537285069420ecde2b432b98d7 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.h
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.h
@@ -191,7 +191,7 @@ class PLATFORM_EXPORT ThreadState {
static ThreadState* fromObject(const void*);
bool isMainThread() const { return this == mainThreadState(); }
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool checkThread() const { return m_thread == currentThread(); }
#endif
@@ -354,7 +354,7 @@ class PLATFORM_EXPORT ThreadState {
return m_arenas[arenaIndex];
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
// Infrastructure to determine if an address is within one of the
// address ranges for the Blink heap. If the address is in the Blink
// heap the containing heap page is returned.
@@ -528,7 +528,7 @@ class PLATFORM_EXPORT ThreadState {
static_assert(sizeof(&T::invokePreFinalizer) > 0,
"USING_PRE_FINALIZER(T) must be defined.");
ThreadState* state = ThreadState::current();
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
DCHECK(state->checkThread());
#endif
DCHECK(!state->sweepForbidden());
« no previous file with comments | « third_party/WebKit/Source/platform/heap/PersistentNode.h ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698