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

Unified Diff: Source/platform/heap/ThreadState.cpp

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/HeapTest.cpp ('k') | Source/platform/heap/Visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698