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

Unified Diff: Source/wtf/ListHashSet.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/wtf/DefaultAllocator.h ('k') | Source/wtf/PartitionAlloc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ListHashSet.h
diff --git a/Source/wtf/ListHashSet.h b/Source/wtf/ListHashSet.h
index e9e132af13b908b1a5542a7c7175bbd39160b4ae..52b2906becfdcfe3026b9ffbaab3ba5ee5f68678 100644
--- a/Source/wtf/ListHashSet.h
+++ b/Source/wtf/ListHashSet.h
@@ -217,7 +217,7 @@ namespace WTF {
: m_value(value)
, m_prev(0)
, m_next(0)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_isAllocated(true)
#endif
{
@@ -228,7 +228,7 @@ namespace WTF {
: m_value(value)
, m_prev(0)
, m_next(0)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_isAllocated(true)
#endif
{
@@ -238,7 +238,7 @@ namespace WTF {
ValueArg m_value;
ListHashSetNodeBase* m_prev;
ListHashSetNodeBase* m_next;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
bool m_isAllocated;
#endif
};
@@ -314,7 +314,7 @@ namespace WTF {
void deallocate(Node* node)
{
if (inPool(node)) {
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
node->m_isAllocated = false;
#endif
node->m_next = m_freeList;
« no previous file with comments | « Source/wtf/DefaultAllocator.h ('k') | Source/wtf/PartitionAlloc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698