| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 2cbfd3b182ac978de156b8ef52b71f446506325b..9ee64e3b566713b9d9eb3d93b5d65352c4ce4a82 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -3596,10 +3596,6 @@ MaybeObject* Heap::AllocateExternalStringFromAscii(
|
| return Failure::OutOfMemoryException(0x5);
|
| }
|
|
|
| -#ifndef ENABLE_LATIN_1
|
| - ASSERT(String::IsAscii(resource->data(), static_cast<int>(length)));
|
| -#endif // ENABLE_LATIN_1
|
| -
|
| Map* map = external_ascii_string_map();
|
| Object* result;
|
| { MaybeObject* maybe_result = Allocate(map, NEW_SPACE);
|
| @@ -5078,17 +5074,6 @@ MaybeObject* Heap::AllocateRawOneByteString(int length,
|
| String::cast(result)->set_hash_field(String::kEmptyHashField);
|
| ASSERT_EQ(size, HeapObject::cast(result)->Size());
|
|
|
| -#ifndef ENABLE_LATIN_1
|
| -#ifdef VERIFY_HEAP
|
| - if (FLAG_verify_heap) {
|
| - // Initialize string's content to ensure ASCII-ness (character range 0-127)
|
| - // as required when verifying the heap.
|
| - uint8_t* dest = SeqOneByteString::cast(result)->GetChars();
|
| - memset(dest, 0x0F, length * kCharSize);
|
| - }
|
| -#endif
|
| -#endif
|
| -
|
| return result;
|
| }
|
|
|
|
|