OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <iomanip> | 8 #include <iomanip> |
9 #include <memory> | 9 #include <memory> |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 3891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3902 Map::GeneralizeFieldType(old_representation, old_field_type, | 3902 Map::GeneralizeFieldType(old_representation, old_field_type, |
3903 new_representation, new_field_type, isolate); | 3903 new_representation, new_field_type, isolate); |
3904 | 3904 |
3905 PropertyDetails details = descriptors->GetDetails(modify_index); | 3905 PropertyDetails details = descriptors->GetDetails(modify_index); |
3906 Handle<Name> name(descriptors->GetKey(modify_index)); | 3906 Handle<Name> name(descriptors->GetKey(modify_index)); |
3907 | 3907 |
3908 Handle<Object> wrapped_type(WrapType(new_field_type)); | 3908 Handle<Object> wrapped_type(WrapType(new_field_type)); |
3909 field_owner->UpdateFieldType(modify_index, name, new_representation, | 3909 field_owner->UpdateFieldType(modify_index, name, new_representation, |
3910 wrapped_type); | 3910 wrapped_type); |
3911 field_owner->dependent_code()->DeoptimizeDependentCodeGroup( | 3911 field_owner->dependent_code()->DeoptimizeDependentCodeGroup( |
3912 isolate, DependentCode::kFieldTypeGroup); | 3912 isolate, DependentCode::kFieldOwnerGroup); |
3913 | 3913 |
3914 if (FLAG_trace_generalization) { | 3914 if (FLAG_trace_generalization) { |
3915 map->PrintGeneralization( | 3915 map->PrintGeneralization( |
3916 stdout, "field type generalization", modify_index, | 3916 stdout, "field type generalization", modify_index, |
3917 map->NumberOfOwnDescriptors(), map->NumberOfOwnDescriptors(), false, | 3917 map->NumberOfOwnDescriptors(), map->NumberOfOwnDescriptors(), false, |
3918 details.representation(), details.representation(), old_field_type, | 3918 details.representation(), details.representation(), old_field_type, |
3919 MaybeHandle<Object>(), new_field_type, MaybeHandle<Object>()); | 3919 MaybeHandle<Object>(), new_field_type, MaybeHandle<Object>()); |
3920 } | 3920 } |
3921 } | 3921 } |
3922 | 3922 |
(...skipping 11317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15240 const char* DependentCode::DependencyGroupName(DependencyGroup group) { | 15240 const char* DependentCode::DependencyGroupName(DependencyGroup group) { |
15241 switch (group) { | 15241 switch (group) { |
15242 case kWeakCodeGroup: | 15242 case kWeakCodeGroup: |
15243 return "weak-code"; | 15243 return "weak-code"; |
15244 case kTransitionGroup: | 15244 case kTransitionGroup: |
15245 return "transition"; | 15245 return "transition"; |
15246 case kPrototypeCheckGroup: | 15246 case kPrototypeCheckGroup: |
15247 return "prototype-check"; | 15247 return "prototype-check"; |
15248 case kPropertyCellChangedGroup: | 15248 case kPropertyCellChangedGroup: |
15249 return "property-cell-changed"; | 15249 return "property-cell-changed"; |
15250 case kFieldTypeGroup: | 15250 case kFieldOwnerGroup: |
15251 return "field-type"; | 15251 return "field-owner"; |
15252 case kInitialMapChangedGroup: | 15252 case kInitialMapChangedGroup: |
15253 return "initial-map-changed"; | 15253 return "initial-map-changed"; |
15254 case kAllocationSiteTenuringChangedGroup: | 15254 case kAllocationSiteTenuringChangedGroup: |
15255 return "allocation-site-tenuring-changed"; | 15255 return "allocation-site-tenuring-changed"; |
15256 case kAllocationSiteTransitionChangedGroup: | 15256 case kAllocationSiteTransitionChangedGroup: |
15257 return "allocation-site-transition-changed"; | 15257 return "allocation-site-transition-changed"; |
15258 } | 15258 } |
15259 UNREACHABLE(); | 15259 UNREACHABLE(); |
15260 return "?"; | 15260 return "?"; |
15261 } | 15261 } |
(...skipping 4842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20104 ns, Accessors::ModuleNamespaceEntryInfo(isolate, name, attr)) | 20104 ns, Accessors::ModuleNamespaceEntryInfo(isolate, name, attr)) |
20105 .Check(); | 20105 .Check(); |
20106 } | 20106 } |
20107 JSObject::PreventExtensions(ns, THROW_ON_ERROR).ToChecked(); | 20107 JSObject::PreventExtensions(ns, THROW_ON_ERROR).ToChecked(); |
20108 | 20108 |
20109 return ns; | 20109 return ns; |
20110 } | 20110 } |
20111 | 20111 |
20112 } // namespace internal | 20112 } // namespace internal |
20113 } // namespace v8 | 20113 } // namespace v8 |
OLD | NEW |