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
// 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.