| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 344441dfdb4bd3cc7287bc0ba5f384af7833cff1..847cfa3a2ebb225aa4af6ddccec8aadeb4d7c0c2 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -2682,6 +2682,10 @@ void Heap::CreateInitialObjects() {
|
| empty_properties_dictionary->SetRequiresCopyOnCapacityChange();
|
| set_empty_properties_dictionary(*empty_properties_dictionary);
|
|
|
| + set_public_symbol_table(*empty_properties_dictionary);
|
| + set_api_symbol_table(*empty_properties_dictionary);
|
| + set_api_private_symbol_table(*empty_properties_dictionary);
|
| +
|
| set_number_string_cache(
|
| *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED));
|
|
|
| @@ -2710,9 +2714,6 @@ void Heap::CreateInitialObjects() {
|
|
|
| set_undefined_cell(*factory->NewCell(factory->undefined_value()));
|
|
|
| - // The symbol registry is initialized lazily.
|
| - set_symbol_registry(Smi::kZero);
|
| -
|
| // Microtask queue uses the empty fixed array as a sentinel for "empty".
|
| // Number of queued microtasks stored in Isolate::pending_microtask_count().
|
| set_microtask_queue(empty_fixed_array());
|
| @@ -2873,7 +2874,6 @@ bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) {
|
| case kInstanceofCacheAnswerRootIndex:
|
| case kCodeStubsRootIndex:
|
| case kEmptyScriptRootIndex:
|
| - case kSymbolRegistryRootIndex:
|
| case kScriptListRootIndex:
|
| case kMaterializedObjectsRootIndex:
|
| case kMicrotaskQueueRootIndex:
|
| @@ -2884,6 +2884,9 @@ bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) {
|
| case kNoScriptSharedFunctionInfosRootIndex:
|
| case kWeakStackTraceListRootIndex:
|
| case kSerializedTemplatesRootIndex:
|
| + case kPublicSymbolTableRootIndex:
|
| + case kApiSymbolTableRootIndex:
|
| + case kApiPrivateSymbolTableRootIndex:
|
| // Smi values
|
| #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex:
|
| SMI_ROOT_LIST(SMI_ENTRY)
|
|
|