Index: src/ia32/regexp-macro-assembler-ia32.cc |
diff --git a/src/ia32/regexp-macro-assembler-ia32.cc b/src/ia32/regexp-macro-assembler-ia32.cc |
index 622dc4254d08994d76866e3293afc115467be122..af6a9e44baac5745e45f9d9c3d6eb4fcd2a9ce91 100644 |
--- a/src/ia32/regexp-macro-assembler-ia32.cc |
+++ b/src/ia32/regexp-macro-assembler-ia32.cc |
@@ -1197,7 +1197,7 @@ int RegExpMacroAssemblerIA32::CheckStackGuardState(Address* return_address, |
Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); |
// Current string. |
- bool is_ascii = subject->IsAsciiRepresentationUnderneath(); |
+ bool is_ascii = subject->IsOneByteRepresentationUnderneath(); |
ASSERT(re_code->instruction_start() <= *return_address); |
ASSERT(*return_address <= |
@@ -1228,7 +1228,7 @@ int RegExpMacroAssemblerIA32::CheckStackGuardState(Address* return_address, |
} |
// String might have changed. |
- if (subject_tmp->IsAsciiRepresentation() != is_ascii) { |
+ if (subject_tmp->IsOneByteRepresentation() != is_ascii) { |
// If we changed between an ASCII and an UC16 string, the specialized |
// code cannot be used, and we need to restart regexp matching from |
// scratch (including, potentially, compiling a new version of the code). |