Index: src/arm/regexp-macro-assembler-arm.cc |
diff --git a/src/arm/regexp-macro-assembler-arm.cc b/src/arm/regexp-macro-assembler-arm.cc |
index 17b867784251a15a218c75c5e806b6c6724484a8..d852d23760415e0d644d19ba085935ff13e7880c 100644 |
--- a/src/arm/regexp-macro-assembler-arm.cc |
+++ b/src/arm/regexp-macro-assembler-arm.cc |
@@ -1150,7 +1150,7 @@ int RegExpMacroAssemblerARM::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 <= |
@@ -1181,7 +1181,7 @@ int RegExpMacroAssemblerARM::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). |