| 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/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 2877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2888 set_has_instance_protector(*cell); | 2888 set_has_instance_protector(*cell); |
| 2889 | 2889 |
| 2890 Handle<Cell> is_concat_spreadable_cell = factory->NewCell( | 2890 Handle<Cell> is_concat_spreadable_cell = factory->NewCell( |
| 2891 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); | 2891 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
| 2892 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); | 2892 set_is_concat_spreadable_protector(*is_concat_spreadable_cell); |
| 2893 | 2893 |
| 2894 Handle<Cell> species_cell = factory->NewCell( | 2894 Handle<Cell> species_cell = factory->NewCell( |
| 2895 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); | 2895 handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate())); |
| 2896 set_species_protector(*species_cell); | 2896 set_species_protector(*species_cell); |
| 2897 | 2897 |
| 2898 set_serialized_templates(empty_fixed_array()); |
| 2899 |
| 2898 set_weak_stack_trace_list(Smi::FromInt(0)); | 2900 set_weak_stack_trace_list(Smi::FromInt(0)); |
| 2899 | 2901 |
| 2900 set_noscript_shared_function_infos(Smi::FromInt(0)); | 2902 set_noscript_shared_function_infos(Smi::FromInt(0)); |
| 2901 | 2903 |
| 2902 // Initialize keyed lookup cache. | 2904 // Initialize keyed lookup cache. |
| 2903 isolate_->keyed_lookup_cache()->Clear(); | 2905 isolate_->keyed_lookup_cache()->Clear(); |
| 2904 | 2906 |
| 2905 // Initialize context slot cache. | 2907 // Initialize context slot cache. |
| 2906 isolate_->context_slot_cache()->Clear(); | 2908 isolate_->context_slot_cache()->Clear(); |
| 2907 | 2909 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2925 case kEmptyScriptRootIndex: | 2927 case kEmptyScriptRootIndex: |
| 2926 case kSymbolRegistryRootIndex: | 2928 case kSymbolRegistryRootIndex: |
| 2927 case kScriptListRootIndex: | 2929 case kScriptListRootIndex: |
| 2928 case kMaterializedObjectsRootIndex: | 2930 case kMaterializedObjectsRootIndex: |
| 2929 case kMicrotaskQueueRootIndex: | 2931 case kMicrotaskQueueRootIndex: |
| 2930 case kDetachedContextsRootIndex: | 2932 case kDetachedContextsRootIndex: |
| 2931 case kWeakObjectToCodeTableRootIndex: | 2933 case kWeakObjectToCodeTableRootIndex: |
| 2932 case kRetainedMapsRootIndex: | 2934 case kRetainedMapsRootIndex: |
| 2933 case kNoScriptSharedFunctionInfosRootIndex: | 2935 case kNoScriptSharedFunctionInfosRootIndex: |
| 2934 case kWeakStackTraceListRootIndex: | 2936 case kWeakStackTraceListRootIndex: |
| 2937 case kSerializedTemplatesRootIndex: |
| 2935 // Smi values | 2938 // Smi values |
| 2936 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex: | 2939 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex: |
| 2937 SMI_ROOT_LIST(SMI_ENTRY) | 2940 SMI_ROOT_LIST(SMI_ENTRY) |
| 2938 #undef SMI_ENTRY | 2941 #undef SMI_ENTRY |
| 2939 // String table | 2942 // String table |
| 2940 case kStringTableRootIndex: | 2943 case kStringTableRootIndex: |
| 2941 return true; | 2944 return true; |
| 2942 | 2945 |
| 2943 default: | 2946 default: |
| 2944 return false; | 2947 return false; |
| (...skipping 3508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6453 } | 6456 } |
| 6454 | 6457 |
| 6455 | 6458 |
| 6456 // static | 6459 // static |
| 6457 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6460 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6458 return StaticVisitorBase::GetVisitorId(map); | 6461 return StaticVisitorBase::GetVisitorId(map); |
| 6459 } | 6462 } |
| 6460 | 6463 |
| 6461 } // namespace internal | 6464 } // namespace internal |
| 6462 } // namespace v8 | 6465 } // namespace v8 |
| OLD | NEW |