| Index: Source/platform/heap/ThreadState.cpp
|
| diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
|
| index d01bf7f952045abb82e6c7b8c5d1f00bac77e1d9..12bc90f16f6fa36b05902b91f3adf9dc1e062e22 100644
|
| --- a/Source/platform/heap/ThreadState.cpp
|
| +++ b/Source/platform/heap/ThreadState.cpp
|
| @@ -707,7 +707,7 @@ void ThreadState::prepareForGC()
|
| BaseHeapPage* ThreadState::heapPageFromAddress(Address address)
|
| {
|
| BaseHeapPage* cachedPage = heapContainsCache()->lookup(address);
|
| -#ifdef NDEBUG
|
| +#if !ENABLE(ASSERT)
|
| if (cachedPage)
|
| return cachedPage;
|
| #endif
|
| @@ -734,7 +734,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();
|
|
|