| Index: src/regexp-macro-assembler-ia32.cc
|
| diff --git a/src/regexp-macro-assembler-ia32.cc b/src/regexp-macro-assembler-ia32.cc
|
| index ce452ce37ba52865e0fc35c5c2464aa36350863c..fa529a572b92de4b87adb865b4a937dc3a6ff0a3 100644
|
| --- a/src/regexp-macro-assembler-ia32.cc
|
| +++ b/src/regexp-macro-assembler-ia32.cc
|
| @@ -1109,7 +1109,7 @@ const byte* RegExpMacroAssemblerIA32::StringCharacterPosition(String* subject,
|
| ASSERT(start_index <= subject->length());
|
| if (StringShape(subject).IsAsciiRepresentation()) {
|
| const byte* address;
|
| - if (subject->IsExternalAsciiString()) {
|
| + if (StringShape(subject).IsExternal()) {
|
| const char* data = ExternalAsciiString::cast(subject)->resource()->data();
|
| address = reinterpret_cast<const byte*>(data);
|
| } else {
|
| @@ -1120,7 +1120,7 @@ const byte* RegExpMacroAssemblerIA32::StringCharacterPosition(String* subject,
|
| return address + start_index;
|
| }
|
| const uc16* data;
|
| - if (subject->IsExternalTwoByteString()) {
|
| + if (StringShape(subject).IsExternal()) {
|
| data = ExternalTwoByteString::cast(subject)->resource()->data();
|
| } else {
|
| ASSERT(subject->IsSeqTwoByteString());
|
|
|