Index: Source/platform/heap/ThreadState.cpp |
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp |
index 2b2e003762748bea37f8b01520441206a18d8c72..fd02fa696f3541f8dceaf2f11c78594cef32627b 100644 |
--- a/Source/platform/heap/ThreadState.cpp |
+++ b/Source/platform/heap/ThreadState.cpp |
@@ -752,7 +752,7 @@ void ThreadState::setupHeapsForTermination() |
BaseHeapPage* ThreadState::heapPageFromAddress(Address address) |
{ |
BaseHeapPage* cachedPage = heapContainsCache()->lookup(address); |
-#ifdef NDEBUG |
+#if !ENABLE(ASSERT) |
if (cachedPage) |
return cachedPage; |
#endif |
@@ -779,7 +779,7 @@ BaseHeapPage* ThreadState::heapPageFromAddress(Address address) |
void ThreadState::getStats(HeapStats& stats) |
{ |
stats = m_stats; |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
if (isConsistentForGC()) { |
HeapStats scannedStats; |
scannedStats.clear(); |