| Index: src/x64/regexp-macro-assembler-x64.cc
|
| diff --git a/src/x64/regexp-macro-assembler-x64.cc b/src/x64/regexp-macro-assembler-x64.cc
|
| index 86f7bfe6ca66533853f9c93f03851b05ef7c1e4a..6cb87e899eff65e4d5581636afd8bdb980ff09ec 100644
|
| --- a/src/x64/regexp-macro-assembler-x64.cc
|
| +++ b/src/x64/regexp-macro-assembler-x64.cc
|
| @@ -1305,7 +1305,7 @@ int RegExpMacroAssemblerX64::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 <=
|
| @@ -1336,7 +1336,7 @@ int RegExpMacroAssemblerX64::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).
|
|
|