Index: src/regexp-macro-assembler.cc |
=================================================================== |
--- src/regexp-macro-assembler.cc (revision 10035) |
+++ src/regexp-macro-assembler.cc (working copy) |
@@ -81,7 +81,7 @@ |
if (subject->IsAsciiRepresentation()) { |
const byte* address; |
if (StringShape(subject).IsExternal()) { |
- const char* data = ExternalAsciiString::cast(subject)->resource()->data(); |
+ const char* data = ExternalAsciiString::cast(subject)->GetChars(); |
address = reinterpret_cast<const byte*>(data); |
} else { |
ASSERT(subject->IsSeqAsciiString()); |
@@ -92,7 +92,7 @@ |
} |
const uc16* data; |
if (StringShape(subject).IsExternal()) { |
- data = ExternalTwoByteString::cast(subject)->resource()->data(); |
+ data = ExternalTwoByteString::cast(subject)->GetChars(); |
} else { |
ASSERT(subject->IsSeqTwoByteString()); |
data = SeqTwoByteString::cast(subject)->GetChars(); |