From 77bc99c0b19955446b2f83e7d1b10bfedf55f80a Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Mon, 18 Feb 2013 12:22:04 +0000 Subject: [PATCH] Fix bogus assertion. R=dcarney@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/12303006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13683 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime.cc b/src/runtime.cc index 68b36a7..c379ec9 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -5837,12 +5837,12 @@ static const uintptr_t kAsciiMask = kOneInEveryByte << 7; // Requires: all bytes in the input word and the boundaries must be // ASCII (less than 0x7F). static inline uintptr_t AsciiRangeMask(uintptr_t w, char m, char n) { - // Every byte in an ASCII string is less than or equal to 0x7F. - ASSERT((w & (kOneInEveryByte * 0x7F)) == w); // Use strict inequalities since in edge cases the function could be // further simplified. ASSERT(0 < m && m < n); #ifndef ENABLE_LATIN_1 + // Every byte in an ASCII string is less than or equal to 0x7F. + ASSERT((w & (kOneInEveryByte * 0x7F)) == w); ASSERT(n < 0x7F); #endif // Has high bit set in every w byte less than n. -- 2.7.4