| Index: src/regexp-macro-assembler.cc
|
| diff --git a/src/regexp-macro-assembler.cc b/src/regexp-macro-assembler.cc
|
| index 2ce5cfb12af41ba5d7426d6d08abf42ccdfd8dd9..ee9347acbb7e2bf0a1d0f0c21ee4f5ff557bff33 100644
|
| --- a/src/regexp-macro-assembler.cc
|
| +++ b/src/regexp-macro-assembler.cc
|
| @@ -77,7 +77,7 @@ const byte* NativeRegExpMacroAssembler::StringCharacterPosition(
|
| ASSERT(subject->IsExternalString() || subject->IsSeqString());
|
| ASSERT(start_index >= 0);
|
| ASSERT(start_index <= subject->length());
|
| - if (subject->IsAsciiRepresentation()) {
|
| + if (subject->IsOneByteRepresentation()) {
|
| const byte* address;
|
| if (StringShape(subject).IsExternal()) {
|
| const char* data = ExternalAsciiString::cast(subject)->GetChars();
|
| @@ -133,7 +133,7 @@ NativeRegExpMacroAssembler::Result NativeRegExpMacroAssembler::Match(
|
| slice_offset = slice->offset();
|
| }
|
| // Ensure that an underlying string has the same ASCII-ness.
|
| - bool is_ascii = subject_ptr->IsAsciiRepresentation();
|
| + bool is_ascii = subject_ptr->IsOneByteRepresentation();
|
| ASSERT(subject_ptr->IsExternalString() || subject_ptr->IsSeqString());
|
| // String is now either Sequential or External
|
| int char_size_shift = is_ascii ? 0 : 1;
|
|
|