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