Commit c35bacb2 authored by lrn@chromium.org's avatar lrn@chromium.org

Now compiles when not in debug mode. Whoops.


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1563 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 6fa2f4f0
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment