Fix bogus assertion.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 18 Feb 2013 12:22:04 +0000 (12:22 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 18 Feb 2013 12:22:04 +0000 (12:22 +0000)
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

index 68b36a7..c379ec9 100644 (file)
@@ -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.