Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 345ed3244c8f629e61600ca37af088b096025514..130db430c7696ab865003b52b878afff76fbd423 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2764,6 +2764,14 @@ void Heap::CreateInitialObjects() { |
set_dummy_vector(*dummy_vector); |
} |
+ { |
+ Handle<FixedArray> cleared_optimized_code_map = |
+ factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); |
+ STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && |
+ SharedFunctionInfo::kSharedCodeIndex == 0); |
+ set_cleared_optimized_code_map(*cleared_optimized_code_map); |
+ } |
+ |
set_detached_contexts(empty_fixed_array()); |
set_retained_maps(ArrayList::cast(empty_fixed_array())); |