Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 5c2d5786099bff15cd894eea21f08693bd4dc0cf..352cb8c8e7d700f0ed1f954bfe9ce8175e5a5239 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2213,6 +2213,7 @@ bool Heap::CreateInitialMaps() { |
} |
ALLOCATE_PARTIAL_MAP(FIXED_ARRAY_TYPE, kVariableSizeSentinel, fixed_array); |
+ fixed_array_map()->set_elements_kind(FAST_HOLEY_ELEMENTS); |
ALLOCATE_PARTIAL_MAP(ODDBALL_TYPE, Oddball::kSize, undefined); |
ALLOCATE_PARTIAL_MAP(ODDBALL_TYPE, Oddball::kSize, null); |
ALLOCATE_PARTIAL_MAP(ODDBALL_TYPE, Oddball::kSize, the_hole); |
@@ -2287,7 +2288,8 @@ bool Heap::CreateInitialMaps() { |
} |
ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, fixed_cow_array) |
- DCHECK(fixed_array_map() != fixed_cow_array_map()); |
+ fixed_cow_array_map()->set_elements_kind(FAST_HOLEY_ELEMENTS); |
+ DCHECK_NE(fixed_array_map(), fixed_cow_array_map()); |
ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, scope_info) |
ALLOCATE_PRIMITIVE_MAP(HEAP_NUMBER_TYPE, HeapNumber::kSize, heap_number, |
@@ -2336,6 +2338,7 @@ bool Heap::CreateInitialMaps() { |
} |
ALLOCATE_VARSIZE_MAP(FIXED_DOUBLE_ARRAY_TYPE, fixed_double_array) |
+ fixed_double_array_map()->set_elements_kind(FAST_HOLEY_DOUBLE_ELEMENTS); |
ALLOCATE_VARSIZE_MAP(BYTE_ARRAY_TYPE, byte_array) |
ALLOCATE_VARSIZE_MAP(BYTECODE_ARRAY_TYPE, bytecode_array) |
ALLOCATE_VARSIZE_MAP(FREE_SPACE_TYPE, free_space) |