Index: third_party/WebKit/Source/wtf/text/ASCIIFastPath.h |
diff --git a/third_party/WebKit/Source/wtf/text/ASCIIFastPath.h b/third_party/WebKit/Source/wtf/text/ASCIIFastPath.h |
index 37685e349f173a706ea992ea676420ccd1e45d3c..b167a322152ad1d9d313d89c78c5377b19759674 100644 |
--- a/third_party/WebKit/Source/wtf/text/ASCIIFastPath.h |
+++ b/third_party/WebKit/Source/wtf/text/ASCIIFastPath.h |
@@ -116,7 +116,7 @@ inline void copyLCharsFromUCharSource(LChar* destination, |
size_t i = 0; |
for (; i < length && !isAlignedTo<memoryAccessMask>(&source[i]); ++i) { |
- ASSERT(!(source[i] & 0xff00)); |
+ DCHECK(!(source[i] & 0xff00)); |
destination[i] = static_cast<LChar>(source[i]); |
} |
@@ -126,9 +126,9 @@ inline void copyLCharsFromUCharSource(LChar* destination, |
if (length > ucharsPerLoop) { |
const size_t endLength = length - ucharsPerLoop + 1; |
for (; i < endLength; i += ucharsPerLoop) { |
-#if ENABLE(ASSERT) |
+#if DCHECK_IS_ON() |
for (unsigned checkIndex = 0; checkIndex < ucharsPerLoop; ++checkIndex) |
- ASSERT(!(source[i + checkIndex] & 0xff00)); |
+ DCHECK(!(source[i + checkIndex] & 0xff00)); |
#endif |
__m128i first8UChars = |
_mm_load_si128(reinterpret_cast<const __m128i*>(&source[i])); |
@@ -141,7 +141,7 @@ inline void copyLCharsFromUCharSource(LChar* destination, |
} |
for (; i < length; ++i) { |
- ASSERT(!(source[i] & 0xff00)); |
+ DCHECK(!(source[i] & 0xff00)); |
destination[i] = static_cast<LChar>(source[i]); |
} |
#elif COMPILER(GCC) && CPU(ARM_NEON) && \ |
@@ -171,7 +171,7 @@ inline void copyLCharsFromUCharSource(LChar* destination, |
*destination++ = static_cast<LChar>(*source++); |
#else |
for (size_t i = 0; i < length; ++i) { |
- ASSERT(!(source[i] & 0xff00)); |
+ DCHECK(!(source[i] & 0xff00)); |
destination[i] = static_cast<LChar>(source[i]); |
} |
#endif |