| 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 2893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2904 set_has_instance_protector(*cell); | 2904 set_has_instance_protector(*cell); |
| 2905 | 2905 |
| 2906 Handle<Cell> is_concat_spreadable_cell = factory->NewCell( | 2906 Handle<Cell> is_concat_spreadable_cell = factory->NewCell( |
| 2907 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); | 2907 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
| 2908 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); | 2908 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); |
| 2909 | 2909 |
| 2910 Handle<Cell> species_cell = factory->NewCell( | 2910 Handle<Cell> species_cell = factory->NewCell( |
| 2911 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); | 2911 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
| 2912 set_species_protector(*species_cell); | 2912 set_species_protector(*species_cell); |
| 2913 | 2913 |
| 2914 cell = factory->NewPropertyCell(); | |
| 2915 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); | |
| 2916 set_string_length_protector(*cell); | |
| 2917 | |
| 2918 set_serialized_templates(empty_fixed_array()); | 2914 set_serialized_templates(empty_fixed_array()); |
| 2919 | 2915 |
| 2920 set_weak_stack_trace_list(Smi::FromInt(0)); | 2916 set_weak_stack_trace_list(Smi::FromInt(0)); |
| 2921 | 2917 |
| 2922 set_noscript_shared_function_infos(Smi::FromInt(0)); | 2918 set_noscript_shared_function_infos(Smi::FromInt(0)); |
| 2923 | 2919 |
| 2924 // Initialize keyed lookup cache. | 2920 // Initialize keyed lookup cache. |
| 2925 isolate_->keyed_lookup_cache()->Clear(); | 2921 isolate_->keyed_lookup_cache()->Clear(); |
| 2926 | 2922 |
| 2927 // Initialize context slot cache. | 2923 // Initialize context slot cache. |
| (...skipping 3610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6538 } | 6534 } |
| 6539 | 6535 |
| 6540 | 6536 |
| 6541 // static | 6537 // static |
| 6542 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6538 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6543 return StaticVisitorBase::GetVisitorId(map); | 6539 return StaticVisitorBase::GetVisitorId(map); |
| 6544 } | 6540 } |
| 6545 | 6541 |
| 6546 } // namespace internal | 6542 } // namespace internal |
| 6547 } // namespace v8 | 6543 } // namespace v8 |
| OLD | NEW |