| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 55a31dc2d8c0fa2146bc4c742e2a2e94a83f89b3..199ee60116785961ef38067c611c1e86eafd057f 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -1707,10 +1707,10 @@ bool Heap::CreateInitialMaps() {
|
| set_empty_byte_array(ByteArray::cast(obj));
|
|
|
| { MaybeObject* maybe_obj =
|
| - AllocateMap(PIXEL_ARRAY_TYPE, PixelArray::kAlignedSize);
|
| + AllocateMap(EXTERNAL_PIXEL_ARRAY_TYPE, ExternalArray::kAlignedSize);
|
| if (!maybe_obj->ToObject(&obj)) return false;
|
| }
|
| - set_pixel_array_map(Map::cast(obj));
|
| + set_external_pixel_array_map(Map::cast(obj));
|
|
|
| { MaybeObject* maybe_obj = AllocateMap(EXTERNAL_BYTE_ARRAY_TYPE,
|
| ExternalArray::kAlignedSize);
|
| @@ -2228,6 +2228,8 @@ Heap::RootListIndex Heap::RootIndexForExternalArrayType(
|
| return kExternalUnsignedIntArrayMapRootIndex;
|
| case kExternalFloatArray:
|
| return kExternalFloatArrayMapRootIndex;
|
| + case kExternalPixelArray:
|
| + return kExternalPixelArrayMapRootIndex;
|
| default:
|
| UNREACHABLE();
|
| return kUndefinedValueRootIndex;
|
| @@ -2662,24 +2664,6 @@ void Heap::CreateFillerObjectAt(Address addr, int size) {
|
| }
|
|
|
|
|
| -MaybeObject* Heap::AllocatePixelArray(int length,
|
| - uint8_t* external_pointer,
|
| - PretenureFlag pretenure) {
|
| - AllocationSpace space = (pretenure == TENURED) ? OLD_DATA_SPACE : NEW_SPACE;
|
| - Object* result;
|
| - { MaybeObject* maybe_result =
|
| - AllocateRaw(PixelArray::kAlignedSize, space, OLD_DATA_SPACE);
|
| - if (!maybe_result->ToObject(&result)) return maybe_result;
|
| - }
|
| -
|
| - reinterpret_cast<PixelArray*>(result)->set_map(pixel_array_map());
|
| - reinterpret_cast<PixelArray*>(result)->set_length(length);
|
| - reinterpret_cast<PixelArray*>(result)->set_external_pointer(external_pointer);
|
| -
|
| - return result;
|
| -}
|
| -
|
| -
|
| MaybeObject* Heap::AllocateExternalArray(int length,
|
| ExternalArrayType array_type,
|
| void* external_pointer,
|
|
|