Skip to content

Commit

Permalink
Update map-updater.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwibrowser authored Nov 5, 2020
1 parent dba3e12 commit 0a33946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v8/src/map-updater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,10 @@ MapUpdater::State MapUpdater::FindTargetMap() {
// Try updating the field in-place to a generalized type.
Representation generalized =
tmp_representation.generalize(old_details.representation());
if (!tmp_representation.CanBeInPlaceChangedTo(generalized)) {
if (!tmp_representation.Equals(generalized)) {
break;
}
Handle<Map> field_owner(tmp_map->FindFieldOwner(isolate_, i), isolate_);
Handle<Map> field_owner(tmp_map->FindFieldOwner(i), isolate_);
tmp_representation = generalized;
GeneralizeField(field_owner, i, tmp_details.constness(),
tmp_representation,
Expand Down

0 comments on commit 0a33946

Please sign in to comment.