Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index a1e2e1671e42c0e7072e05fa194688400a41e296..5576ab3aa9415e3afa5d34dedd16d62f803ec1b5 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2711,8 +2711,8 @@ bool Heap::CreateInitialMaps() { |
ALLOCATE_VARSIZE_MAP(BYTE_ARRAY_TYPE, byte_array) |
ALLOCATE_VARSIZE_MAP(FREE_SPACE_TYPE, free_space) |
-#define ALLOCATE_EXTERNAL_ARRAY_MAP(Type, type, TYPE, ctype, size) \ |
- ALLOCATE_MAP(EXTERNAL_##TYPE##_ARRAY_TYPE, ExternalArray::kAlignedSize, \ |
+#define ALLOCATE_EXTERNAL_ARRAY_MAP(Type, type, TYPE, ctype, size) \ |
+ ALLOCATE_MAP(EXTERNAL_##TYPE##_ARRAY_TYPE, ExternalArray::kSize, \ |
external_##type##_array) |
TYPED_ARRAYS(ALLOCATE_EXTERNAL_ARRAY_MAP) |
@@ -3616,7 +3616,7 @@ AllocationResult Heap::AllocateExternalArray(int length, |
ExternalArrayType array_type, |
void* external_pointer, |
PretenureFlag pretenure) { |
- int size = ExternalArray::kAlignedSize; |
+ int size = ExternalArray::kSize; |
AllocationSpace space = SelectSpace(size, pretenure); |
HeapObject* result; |
{ |