Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/objects.cc

Issue 2410293003: [runtime] Rename FieldTypeGroup to FieldOwnerGroup. (Closed)
Patch Set: Address feedback Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-field-type-tracking.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-field-type-tracking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698