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

Unified Diff: Source/platform/heap/Visitor.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 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 | « Source/platform/heap/ThreadState.cpp ('k') | Source/platform/heap/Visitor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Visitor.h
diff --git a/Source/platform/heap/Visitor.h b/Source/platform/heap/Visitor.h
index 8e8ab36bae2671a531016ab4e5ba498900fd52a8..73a6d5511aeee34aa0a2dc094fccdefb7bd63d97 100644
--- a/Source/platform/heap/Visitor.h
+++ b/Source/platform/heap/Visitor.h
@@ -47,7 +47,7 @@
#include "wtf/text/WTFString.h"
#endif
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
#define DEBUG_ONLY(x) x
#else
#define DEBUG_ONLY(x)
@@ -173,7 +173,7 @@ public:
DefaultTraceTrait<T>::mark(visitor, t);
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
static void checkGCInfo(Visitor* visitor, const T* t)
{
DefaultTraceTrait<T>::checkGCInfo(visitor, t);
@@ -224,7 +224,7 @@ public:
{
if (!t)
return;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
TraceTrait<T>::checkGCInfo(this, t);
#endif
TraceTrait<T>::mark(this, t);
@@ -377,7 +377,7 @@ public:
}
virtual void registerWeakTable(const void*, EphemeronCallback, EphemeronCallback) = 0;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
virtual bool weakTableRegistered(const void*) = 0;
#endif
@@ -398,7 +398,7 @@ public:
return isAlive(ptr.get());
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
void checkGCInfo(const void*, const GCInfo*);
#endif
@@ -506,7 +506,7 @@ public:
visitor->mark(const_cast<T*>(t), &TraceTrait<T>::trace);
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
static void checkGCInfo(Visitor* visitor, const T* t)
{
visitor->checkGCInfo(const_cast<T*>(t), GCInfoTrait<T>::get());
@@ -533,7 +533,7 @@ public:
self->adjustAndMark(visitor);
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
static void checkGCInfo(Visitor*, const T*) { }
#endif
};
« no previous file with comments | « Source/platform/heap/ThreadState.cpp ('k') | Source/platform/heap/Visitor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698