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

Unified Diff: Source/platform/heap/Handle.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/graphics/ImageDecodingStore.cpp ('k') | Source/platform/heap/Heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Handle.h
diff --git a/Source/platform/heap/Handle.h b/Source/platform/heap/Handle.h
index 94db62e0895e71a6caaacf6d9d54083ace2e1af3..901ec0f432698dd04f2afff0fb7d2f8be25ee18d 100644
--- a/Source/platform/heap/Handle.h
+++ b/Source/platform/heap/Handle.h
@@ -203,7 +203,7 @@ public:
protected:
inline PersistentBase()
: PersistentNode(TraceMethodDelegate<Owner, &Owner::trace>::trampoline)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_roots(RootsAccessor::roots())
#endif
{
@@ -216,7 +216,7 @@ protected:
inline explicit PersistentBase(const PersistentBase& otherref)
: PersistentNode(otherref.m_trace)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_roots(RootsAccessor::roots())
#endif
{
@@ -234,7 +234,7 @@ protected:
inline PersistentBase& operator=(const PersistentBase& otherref) { return *this; }
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
private:
PersistentNode* m_roots;
#endif
@@ -276,7 +276,7 @@ private:
friend class ThreadState;
};
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
// For global persistent handles we cannot check that the
// pointer is in the heap because that would involve
// inspecting the heap of running threads.
« no previous file with comments | « Source/platform/graphics/ImageDecodingStore.cpp ('k') | Source/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698