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

Unified Diff: Source/wtf/text/ASCIIFastPath.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/wtf/dtoa/cached-powers.cc ('k') | Source/wtf/text/StringImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/ASCIIFastPath.h
diff --git a/Source/wtf/text/ASCIIFastPath.h b/Source/wtf/text/ASCIIFastPath.h
index 65cc3149f9f2b768c21282885441c3c708c6b036..0a8ae4da690142968a2335494c7ef63a52c50fb7 100644
--- a/Source/wtf/text/ASCIIFastPath.h
+++ b/Source/wtf/text/ASCIIFastPath.h
@@ -119,7 +119,7 @@ inline void copyLCharsFromUCharSource(LChar* destination, const UChar* source, s
if (length > ucharsPerLoop) {
const size_t endLength = length - ucharsPerLoop + 1;
for (; i < endLength; i += ucharsPerLoop) {
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
for (unsigned checkIndex = 0; checkIndex < ucharsPerLoop; ++checkIndex)
ASSERT(!(source[i+checkIndex] & 0xff00));
#endif
« no previous file with comments | « Source/wtf/dtoa/cached-powers.cc ('k') | Source/wtf/text/StringImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698