Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index fd44ff2c97129d275da39f7b6667ff07e94fca68..5b06915c5204a410d725f3c50f46470c647c2fd4 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2817,7 +2817,7 @@ void Heap::CreateInitialObjects() { |
set_empty_script(*script); |
Handle<PropertyCell> cell = factory->NewPropertyCell(); |
- cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
+ cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
set_array_protector(*cell); |
cell = factory->NewPropertyCell(); |
@@ -2825,21 +2825,25 @@ void Heap::CreateInitialObjects() { |
set_empty_property_cell(*cell); |
cell = factory->NewPropertyCell(); |
- cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
+ cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
set_has_instance_protector(*cell); |
Handle<Cell> is_concat_spreadable_cell = factory->NewCell( |
- handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
+ handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
set_is_concat_spreadable_protector(*is_concat_spreadable_cell); |
Handle<Cell> species_cell = factory->NewCell( |
- handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
+ handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
set_species_protector(*species_cell); |
cell = factory->NewPropertyCell(); |
- cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
+ cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
set_string_length_protector(*cell); |
+ Handle<Cell> array_iterator_cell = factory->NewCell( |
+ handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
+ set_array_iterator_protector(*array_iterator_cell); |
+ |
set_serialized_templates(empty_fixed_array()); |
set_weak_stack_trace_list(Smi::kZero); |