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

Unified Diff: Source/bindings/core/v8/V8PerIsolateData.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/bindings/core/v8/SerializedScriptValue.cpp ('k') | Source/bindings/core/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8PerIsolateData.h
diff --git a/Source/bindings/core/v8/V8PerIsolateData.h b/Source/bindings/core/v8/V8PerIsolateData.h
index 2da9dff230d4f887791e380988ac927b9a5b7e06..9bd30b9ba98cf8127ebcc7995a4028329939d971 100644
--- a/Source/bindings/core/v8/V8PerIsolateData.h
+++ b/Source/bindings/core/v8/V8PerIsolateData.h
@@ -78,7 +78,7 @@ public:
bool performingMicrotaskCheckpoint() const { return m_performingMicrotaskCheckpoint; }
void setPerformingMicrotaskCheckpoint(bool performingMicrotaskCheckpoint) { m_performingMicrotaskCheckpoint = performingMicrotaskCheckpoint; }
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
int internalScriptRecursionLevel() const { return m_internalScriptRecursionLevel; }
int incrementInternalScriptRecursionLevel() { return ++m_internalScriptRecursionLevel; }
int decrementInternalScriptRecursionLevel() { return --m_internalScriptRecursionLevel; }
@@ -126,7 +126,7 @@ private:
int m_recursionLevel;
bool m_isHandlingRecursionLevelError;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
int m_internalScriptRecursionLevel;
#endif
OwnPtr<GCEventData> m_gcEventData;
« no previous file with comments | « Source/bindings/core/v8/SerializedScriptValue.cpp ('k') | Source/bindings/core/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698