Skip to content

Commit 73666e3

Browse files
GeorgNeisV8 LUCI CQ
authored andcommitted
Reland "Merged: [compiler] Always record constness dependency for FastDataConstant"
This is a reland of 638d1b2 after a one-character change. A local variable still has a non-optional type in this version of V8. Original change's description: > Merged: [compiler] Always record constness dependency for FastDataConstant > > Revision: 1bfa513 > > BUG=chromium:1209558 > NOTRY=true > NOPRESUBMIT=true > NOTREECHECKS=true > > Change-Id: If4f7243647bcc12ed482796c1353f0717630f6b9 > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2919823 > Commit-Queue: Georg Neis <[email protected]> > Reviewed-by: Igor Sheludko <[email protected]> > Cr-Commit-Position: refs/branch-heads/9.1@{v8#59} > Cr-Branched-From: 0e4ac64-refs/heads/9.1.269@{#1} > Cr-Branched-From: f565e72-refs/heads/master@{#73847} NOTRY=true NOPRESUBMIT=true NOTREECHECKS=true Bug: chromium:1209558 Change-Id: I0c81353882b0f17942fd92ad4181732f941bcb1d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2939991 Commit-Queue: Georg Neis <[email protected]> Reviewed-by: Igor Sheludko <[email protected]> Cr-Commit-Position: refs/branch-heads/9.1@{v8#63} Cr-Branched-From: 0e4ac64-refs/heads/9.1.269@{#1} Cr-Branched-From: f565e72-refs/heads/master@{#73847}
1 parent c9aef28 commit 73666e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/access-info.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ PropertyAccessInfo AccessInfoFactory::LookupTransition(
11171117
// Transitioning stores *may* store to const fields. The resulting
11181118
// DataConstant access infos can be distinguished from later, i.e. redundant,
11191119
// stores to the same constant field by the presence of a transition map.
1120-
switch (details.constness()) {
1120+
switch (dependencies()->DependOnFieldConstness(transition_map_ref, number)) {
11211121
case PropertyConstness::kMutable:
11221122
return PropertyAccessInfo::DataField(
11231123
zone(), map, std::move(unrecorded_dependencies), field_index,

0 commit comments

Comments
 (0)