Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index bc200451be092805dfe910ac0001794910823c1c..2a86e1bef11dcd72c48c928e35be046e1d559f80 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2830,6 +2830,11 @@ void Heap::CreateInitialObjects() { |
set_instanceof_cache_map(Smi::FromInt(0)); |
set_instanceof_cache_answer(Smi::FromInt(0)); |
+#define SYMBOL_INIT(name) \ |
+ roots_[k##name##RootIndex] = *factory->NewPrivateOwnSymbol(); |
+ PRIVATE_SYMBOL_LIST(SYMBOL_INIT) |
+#undef SYMBOL_INIT |
+ |
CreateFixedStubs(); |
// Allocate the dictionary of intrinsic function names. |
@@ -2868,21 +2873,6 @@ void Heap::CreateInitialObjects() { |
// Number of queued microtasks stored in Isolate::pending_microtask_count(). |
set_microtask_queue(empty_fixed_array()); |
- set_detailed_stack_trace_symbol(*factory->NewPrivateOwnSymbol()); |
- set_elements_transition_symbol(*factory->NewPrivateOwnSymbol()); |
- set_frozen_symbol(*factory->NewPrivateOwnSymbol()); |
- set_megamorphic_symbol(*factory->NewPrivateOwnSymbol()); |
- set_premonomorphic_symbol(*factory->NewPrivateOwnSymbol()); |
- set_generic_symbol(*factory->NewPrivateOwnSymbol()); |
- set_nonexistent_symbol(*factory->NewPrivateOwnSymbol()); |
- set_normal_ic_symbol(*factory->NewPrivateOwnSymbol()); |
- set_observed_symbol(*factory->NewPrivateOwnSymbol()); |
- set_stack_trace_symbol(*factory->NewPrivateOwnSymbol()); |
- set_uninitialized_symbol(*factory->NewPrivateOwnSymbol()); |
- set_home_object_symbol(*factory->NewPrivateOwnSymbol()); |
- set_promise_debug_marker_symbol(*factory->NewPrivateOwnSymbol()); |
- set_promise_has_handler_symbol(*factory->NewPrivateOwnSymbol()); |
- |
Handle<SeededNumberDictionary> slow_element_dictionary = |
SeededNumberDictionary::New(isolate(), 0, TENURED); |
slow_element_dictionary->set_requires_slow_elements(); |