Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index d627b1b0b8a231dbfe859808fe6c21c3db6e255a..a90c45171f9d5f51e75f8fe1360ee0eec630fbcb 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2779,6 +2779,8 @@ void Heap::CreateInitialObjects() { |
ArrayList::cast(*(factory->NewFixedArray(16, TENURED)))); |
weak_new_space_object_to_code_list()->SetLength(0); |
+ set_code_coverage_list(undefined_value()); |
+ |
set_script_list(Smi::kZero); |
Handle<SeededNumberDictionary> slow_element_dictionary = |
@@ -2901,6 +2903,7 @@ bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { |
case kWeakObjectToCodeTableRootIndex: |
case kWeakNewSpaceObjectToCodeListRootIndex: |
case kRetainedMapsRootIndex: |
+ case kCodeCoverageListRootIndex: |
case kNoScriptSharedFunctionInfosRootIndex: |
case kWeakStackTraceListRootIndex: |
case kSerializedTemplatesRootIndex: |