Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index f996922b1a80647d9a82fdb8086ef4313c789c46..316c5772a04d5bd941fb8bf863769a7580e38a43 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2247,6 +2247,7 @@ bool Heap::CreateInitialMaps() { |
ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, scope_info) |
ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_info) |
+ ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, type_feedback_vector) |
ALLOCATE_PRIMITIVE_MAP(HEAP_NUMBER_TYPE, HeapNumber::kSize, heap_number, |
Context::NUMBER_FUNCTION_INDEX) |
ALLOCATE_MAP(MUTABLE_HEAP_NUMBER_TYPE, HeapNumber::kSize, |
@@ -2775,6 +2776,7 @@ void Heap::CreateInitialObjects() { |
empty_fixed_array()); |
empty_type_feedback_vector->set(TypeFeedbackVector::kInvocationCountIndex, |
Smi::kZero); |
+ empty_type_feedback_vector->set_map(type_feedback_vector_map()); |
set_empty_type_feedback_vector(*empty_type_feedback_vector); |
// We use a canonical empty LiteralsArray for all functions that neither |