Author: [email protected]
Date: Fri Mar 20 07:09:48 2009
New Revision: 1563
Modified:
branches/bleeding_edge/src/regexp-macro-assembler-ia32.cc
Log:
Now compiles when not in debug mode. Whoops.
Modified: branches/bleeding_edge/src/regexp-macro-assembler-ia32.cc
==============================================================================
--- branches/bleeding_edge/src/regexp-macro-assembler-ia32.cc (original)
+++ branches/bleeding_edge/src/regexp-macro-assembler-ia32.cc Fri Mar 20
07:09:48 2009
@@ -1109,7 +1109,7 @@
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 @@
return address + start_index;
}
const uc16* data;
- if (subject->IsExternalTwoByteString()) {
+ if (StringShape(subject).IsExternal()) {
data = ExternalTwoByteString::cast(subject)->resource()->data();
} else {
ASSERT(subject->IsSeqTwoByteString());
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---