OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/heap/heap.h" | 5 #include "src/heap/heap.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/ast/context-slot-cache.h" | 9 #include "src/ast/context-slot-cache.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2843 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); | 2843 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); |
2844 | 2844 |
2845 Handle<Cell> species_cell = factory->NewCell( | 2845 Handle<Cell> species_cell = factory->NewCell( |
2846 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); | 2846 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
2847 set_species_protector(*species_cell); | 2847 set_species_protector(*species_cell); |
2848 | 2848 |
2849 cell = factory->NewPropertyCell(); | 2849 cell = factory->NewPropertyCell(); |
2850 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); | 2850 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
2851 set_string_length_protector(*cell); | 2851 set_string_length_protector(*cell); |
2852 | 2852 |
| 2853 Handle<Cell> fast_array_iteration_cell = factory->NewCell( |
| 2854 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
| 2855 set_fast_array_iteration_protector(*fast_array_iteration_cell); |
| 2856 |
2853 set_serialized_templates(empty_fixed_array()); | 2857 set_serialized_templates(empty_fixed_array()); |
2854 | 2858 |
2855 set_weak_stack_trace_list(Smi::kZero); | 2859 set_weak_stack_trace_list(Smi::kZero); |
2856 | 2860 |
2857 set_noscript_shared_function_infos(Smi::kZero); | 2861 set_noscript_shared_function_infos(Smi::kZero); |
2858 | 2862 |
2859 // Initialize context slot cache. | 2863 // Initialize context slot cache. |
2860 isolate_->context_slot_cache()->Clear(); | 2864 isolate_->context_slot_cache()->Clear(); |
2861 | 2865 |
2862 // Initialize descriptor cache. | 2866 // Initialize descriptor cache. |
(...skipping 3602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6465 } | 6469 } |
6466 | 6470 |
6467 | 6471 |
6468 // static | 6472 // static |
6469 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6473 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6470 return StaticVisitorBase::GetVisitorId(map); | 6474 return StaticVisitorBase::GetVisitorId(map); |
6471 } | 6475 } |
6472 | 6476 |
6473 } // namespace internal | 6477 } // namespace internal |
6474 } // namespace v8 | 6478 } // namespace v8 |
OLD | NEW |