| 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 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2847 set_string_length_protector(*cell); | 2847 set_string_length_protector(*cell); |
| 2848 | 2848 |
| 2849 Handle<Cell> fast_array_iteration_cell = factory->NewCell( | 2849 Handle<Cell> fast_array_iteration_cell = factory->NewCell( |
| 2850 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); | 2850 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
| 2851 set_fast_array_iteration_protector(*fast_array_iteration_cell); | 2851 set_fast_array_iteration_protector(*fast_array_iteration_cell); |
| 2852 | 2852 |
| 2853 Handle<Cell> array_iterator_cell = factory->NewCell( | 2853 Handle<Cell> array_iterator_cell = factory->NewCell( |
| 2854 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); | 2854 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
| 2855 set_array_iterator_protector(*array_iterator_cell); | 2855 set_array_iterator_protector(*array_iterator_cell); |
| 2856 | 2856 |
| 2857 cell = factory->NewPropertyCell(); |
| 2858 cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
| 2859 set_array_buffer_neutering_protector(*cell); |
| 2860 |
| 2857 set_serialized_templates(empty_fixed_array()); | 2861 set_serialized_templates(empty_fixed_array()); |
| 2858 | 2862 |
| 2859 set_weak_stack_trace_list(Smi::kZero); | 2863 set_weak_stack_trace_list(Smi::kZero); |
| 2860 | 2864 |
| 2861 set_noscript_shared_function_infos(Smi::kZero); | 2865 set_noscript_shared_function_infos(Smi::kZero); |
| 2862 | 2866 |
| 2863 // Initialize context slot cache. | 2867 // Initialize context slot cache. |
| 2864 isolate_->context_slot_cache()->Clear(); | 2868 isolate_->context_slot_cache()->Clear(); |
| 2865 | 2869 |
| 2866 // Initialize descriptor cache. | 2870 // Initialize descriptor cache. |
| (...skipping 3600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6467 } | 6471 } |
| 6468 | 6472 |
| 6469 | 6473 |
| 6470 // static | 6474 // static |
| 6471 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6475 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6472 return StaticVisitorBase::GetVisitorId(map); | 6476 return StaticVisitorBase::GetVisitorId(map); |
| 6473 } | 6477 } |
| 6474 | 6478 |
| 6475 } // namespace internal | 6479 } // namespace internal |
| 6476 } // namespace v8 | 6480 } // namespace v8 |
| OLD | NEW |