| Index: src/ia32/regexp-macro-assembler-ia32.cc
|
| ===================================================================
|
| --- src/ia32/regexp-macro-assembler-ia32.cc (revision 6941)
|
| +++ src/ia32/regexp-macro-assembler-ia32.cc (working copy)
|
| @@ -212,9 +212,7 @@
|
| // If input is ASCII, don't even bother calling here if the string to
|
| // match contains a non-ascii character.
|
| if (mode_ == ASCII) {
|
| - for (int i = 0; i < str.length(); i++) {
|
| - ASSERT(str[i] <= String::kMaxAsciiCharCodeU);
|
| - }
|
| + ASSERT(String::IsAscii(str.start(), str.length()));
|
| }
|
| #endif
|
| int byte_length = str.length() * char_size();
|
| @@ -655,7 +653,7 @@
|
|
|
| void RegExpMacroAssemblerIA32::Fail() {
|
| ASSERT(FAILURE == 0); // Return value for failure is zero.
|
| - __ xor_(eax, Operand(eax)); // zero eax.
|
| + __ Set(eax, Immediate(0));
|
| __ jmp(&exit_label_);
|
| }
|
|
|
|
|