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

Unified Diff: third_party/WebKit/Source/platform/heap/Heap.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/Heap.h
diff --git a/third_party/WebKit/Source/platform/heap/Heap.h b/third_party/WebKit/Source/platform/heap/Heap.h
index 846f71a08f412faaf55a88261d9f9a7efb5ac0fc..c494896d1b5fdc554e716e892a6a87744a4a3729 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.h
+++ b/third_party/WebKit/Source/platform/heap/Heap.h
@@ -234,7 +234,7 @@ class PLATFORM_EXPORT ThreadHeap {
bool isMainThreadHeap() { return this == ThreadHeap::mainThreadHeap(); }
static ThreadHeap* mainThreadHeap() { return s_mainThreadHeap; }
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool isAtSafePoint();
BasePage* findPageFromAddress(Address);
#endif
@@ -378,7 +378,7 @@ class PLATFORM_EXPORT ThreadHeap {
void registerWeakTable(void* containerObject,
EphemeronCallback,
EphemeronCallback);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool weakTableRegistered(const void*);
#endif
@@ -590,7 +590,7 @@ inline bool ThreadHeap::isNormalArenaIndex(int index) {
#define IS_EAGERLY_FINALIZED() \
(pageFromObject(this)->arena()->arenaIndex() == BlinkGC::EagerSweepArenaIndex)
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
class VerifyEagerFinalization {
DISALLOW_NEW();
« no previous file with comments | « third_party/WebKit/Source/platform/heap/GCInfo.cpp ('k') | third_party/WebKit/Source/platform/heap/Heap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698