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 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2833 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); | 2833 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); |
2834 | 2834 |
2835 Handle<Cell> species_cell = factory->NewCell( | 2835 Handle<Cell> species_cell = factory->NewCell( |
2836 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); | 2836 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
2837 set_species_protector(*species_cell); | 2837 set_species_protector(*species_cell); |
2838 | 2838 |
2839 cell = factory->NewPropertyCell(); | 2839 cell = factory->NewPropertyCell(); |
2840 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); | 2840 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
2841 set_string_length_protector(*cell); | 2841 set_string_length_protector(*cell); |
2842 | 2842 |
2843 Handle<Cell> array_iterator_cell = factory->NewCell( | |
2844 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); | |
Yang
2016/11/14 10:17:19
Can we name kArrayProtectorValid to kProtectorVali
petermarshall
2016/11/14 12:52:50
Sounds good to me.
| |
2845 set_array_iterator_protector(*array_iterator_cell); | |
2846 | |
2843 set_serialized_templates(empty_fixed_array()); | 2847 set_serialized_templates(empty_fixed_array()); |
2844 | 2848 |
2845 set_weak_stack_trace_list(Smi::kZero); | 2849 set_weak_stack_trace_list(Smi::kZero); |
2846 | 2850 |
2847 set_noscript_shared_function_infos(Smi::kZero); | 2851 set_noscript_shared_function_infos(Smi::kZero); |
2848 | 2852 |
2849 // Initialize context slot cache. | 2853 // Initialize context slot cache. |
2850 isolate_->context_slot_cache()->Clear(); | 2854 isolate_->context_slot_cache()->Clear(); |
2851 | 2855 |
2852 // Initialize descriptor cache. | 2856 // Initialize descriptor cache. |
(...skipping 3602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6455 } | 6459 } |
6456 | 6460 |
6457 | 6461 |
6458 // static | 6462 // static |
6459 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6463 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6460 return StaticVisitorBase::GetVisitorId(map); | 6464 return StaticVisitorBase::GetVisitorId(map); |
6461 } | 6465 } |
6462 | 6466 |
6463 } // namespace internal | 6467 } // namespace internal |
6464 } // namespace v8 | 6468 } // namespace v8 |
OLD | NEW |