| 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 2850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2861 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); | 2861 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); |
| 2862 | 2862 |
| 2863 Handle<Cell> species_cell = factory->NewCell( | 2863 Handle<Cell> species_cell = factory->NewCell( |
| 2864 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); | 2864 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
| 2865 set_species_protector(*species_cell); | 2865 set_species_protector(*species_cell); |
| 2866 | 2866 |
| 2867 cell = factory->NewPropertyCell(); | 2867 cell = factory->NewPropertyCell(); |
| 2868 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); | 2868 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
| 2869 set_string_length_protector(*cell); | 2869 set_string_length_protector(*cell); |
| 2870 | 2870 |
| 2871 Handle<Cell> array_iterator_cell = factory->NewCell( |
| 2872 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
| 2873 set_array_iterator_protector(*array_iterator_cell); |
| 2874 |
| 2871 set_serialized_templates(empty_fixed_array()); | 2875 set_serialized_templates(empty_fixed_array()); |
| 2872 | 2876 |
| 2873 set_weak_stack_trace_list(Smi::kZero); | 2877 set_weak_stack_trace_list(Smi::kZero); |
| 2874 | 2878 |
| 2875 set_noscript_shared_function_infos(Smi::kZero); | 2879 set_noscript_shared_function_infos(Smi::kZero); |
| 2876 | 2880 |
| 2877 // Initialize context slot cache. | 2881 // Initialize context slot cache. |
| 2878 isolate_->context_slot_cache()->Clear(); | 2882 isolate_->context_slot_cache()->Clear(); |
| 2879 | 2883 |
| 2880 // Initialize descriptor cache. | 2884 // Initialize descriptor cache. |
| (...skipping 3606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6487 } | 6491 } |
| 6488 | 6492 |
| 6489 | 6493 |
| 6490 // static | 6494 // static |
| 6491 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6495 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6492 return StaticVisitorBase::GetVisitorId(map); | 6496 return StaticVisitorBase::GetVisitorId(map); |
| 6493 } | 6497 } |
| 6494 | 6498 |
| 6495 } // namespace internal | 6499 } // namespace internal |
| 6496 } // namespace v8 | 6500 } // namespace v8 |
| OLD | NEW |