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 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2856 | 2856 |
2857 Handle<Cell> array_iterator_cell = factory->NewCell( | 2857 Handle<Cell> array_iterator_cell = factory->NewCell( |
2858 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); | 2858 handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
2859 set_array_iterator_protector(*array_iterator_cell); | 2859 set_array_iterator_protector(*array_iterator_cell); |
2860 | 2860 |
2861 cell = factory->NewPropertyCell(); | 2861 cell = factory->NewPropertyCell(); |
2862 cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); | 2862 cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
2863 set_array_buffer_neutering_protector(*cell); | 2863 set_array_buffer_neutering_protector(*cell); |
2864 | 2864 |
2865 set_serialized_templates(empty_fixed_array()); | 2865 set_serialized_templates(empty_fixed_array()); |
| 2866 set_serialized_global_proxy_sizes(empty_fixed_array()); |
2866 | 2867 |
2867 set_weak_stack_trace_list(Smi::kZero); | 2868 set_weak_stack_trace_list(Smi::kZero); |
2868 | 2869 |
2869 set_noscript_shared_function_infos(Smi::kZero); | 2870 set_noscript_shared_function_infos(Smi::kZero); |
2870 | 2871 |
2871 // Initialize context slot cache. | 2872 // Initialize context slot cache. |
2872 isolate_->context_slot_cache()->Clear(); | 2873 isolate_->context_slot_cache()->Clear(); |
2873 | 2874 |
2874 // Initialize descriptor cache. | 2875 // Initialize descriptor cache. |
2875 isolate_->descriptor_lookup_cache()->Clear(); | 2876 isolate_->descriptor_lookup_cache()->Clear(); |
(...skipping 13 matching lines...) Expand all Loading... |
2889 case kScriptListRootIndex: | 2890 case kScriptListRootIndex: |
2890 case kMaterializedObjectsRootIndex: | 2891 case kMaterializedObjectsRootIndex: |
2891 case kMicrotaskQueueRootIndex: | 2892 case kMicrotaskQueueRootIndex: |
2892 case kDetachedContextsRootIndex: | 2893 case kDetachedContextsRootIndex: |
2893 case kWeakObjectToCodeTableRootIndex: | 2894 case kWeakObjectToCodeTableRootIndex: |
2894 case kWeakNewSpaceObjectToCodeListRootIndex: | 2895 case kWeakNewSpaceObjectToCodeListRootIndex: |
2895 case kRetainedMapsRootIndex: | 2896 case kRetainedMapsRootIndex: |
2896 case kNoScriptSharedFunctionInfosRootIndex: | 2897 case kNoScriptSharedFunctionInfosRootIndex: |
2897 case kWeakStackTraceListRootIndex: | 2898 case kWeakStackTraceListRootIndex: |
2898 case kSerializedTemplatesRootIndex: | 2899 case kSerializedTemplatesRootIndex: |
| 2900 case kSerializedGlobalProxySizesRootIndex: |
2899 case kPublicSymbolTableRootIndex: | 2901 case kPublicSymbolTableRootIndex: |
2900 case kApiSymbolTableRootIndex: | 2902 case kApiSymbolTableRootIndex: |
2901 case kApiPrivateSymbolTableRootIndex: | 2903 case kApiPrivateSymbolTableRootIndex: |
2902 // Smi values | 2904 // Smi values |
2903 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex: | 2905 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex: |
2904 SMI_ROOT_LIST(SMI_ENTRY) | 2906 SMI_ROOT_LIST(SMI_ENTRY) |
2905 #undef SMI_ENTRY | 2907 #undef SMI_ENTRY |
2906 // String table | 2908 // String table |
2907 case kStringTableRootIndex: | 2909 case kStringTableRootIndex: |
2908 return true; | 2910 return true; |
(...skipping 3581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6490 } | 6492 } |
6491 | 6493 |
6492 | 6494 |
6493 // static | 6495 // static |
6494 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6496 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6495 return StaticVisitorBase::GetVisitorId(map); | 6497 return StaticVisitorBase::GetVisitorId(map); |
6496 } | 6498 } |
6497 | 6499 |
6498 } // namespace internal | 6500 } // namespace internal |
6499 } // namespace v8 | 6501 } // namespace v8 |
OLD | NEW |