| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 6f4b69c0a4b6864d5ab209dfe3172e8a46a5b8e6..f604719c991a8382fd1f8c6641b675abd4d45b04 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -633,20 +633,24 @@ void ExternalStringTable::Verify() {
|
| // TODO(yangguo): check that the object is indeed an external string.
|
| ASSERT(heap_->InNewSpace(obj));
|
| ASSERT(obj != HEAP->the_hole_value());
|
| +#ifndef ENABLE_LATIN_1
|
| if (obj->IsExternalAsciiString()) {
|
| ExternalAsciiString* string = ExternalAsciiString::cast(obj);
|
| ASSERT(String::IsAscii(string->GetChars(), string->length()));
|
| }
|
| +#endif
|
| }
|
| for (int i = 0; i < old_space_strings_.length(); ++i) {
|
| Object* obj = Object::cast(old_space_strings_[i]);
|
| // TODO(yangguo): check that the object is indeed an external string.
|
| ASSERT(!heap_->InNewSpace(obj));
|
| ASSERT(obj != HEAP->the_hole_value());
|
| +#ifndef ENABLE_LATIN_1
|
| if (obj->IsExternalAsciiString()) {
|
| ExternalAsciiString* string = ExternalAsciiString::cast(obj);
|
| ASSERT(String::IsAscii(string->GetChars(), string->length()));
|
| }
|
| +#endif
|
| }
|
| #endif
|
| }
|
|
|