[turbofan] Respect unset kBailoutOnUninitialized flag in element access.
Change-Id: Ie996f5da3f2f4a45b5664e33833362b8d13c476c Reviewed-on: https://chromium-review.googlesource.com/c/1460943 Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Commit-Queue: Georg Neis <neis@chromium.org> Cr-Commit-Position: refs/heads/master@{#59466}
This commit is contained in:
parent
c06cb88bc6
commit
d3c4a0b087
@ -1085,8 +1085,12 @@ Reduction JSNativeContextSpecialization::ReduceNamedAccess(
|
||||
|
||||
// Nothing to do if we have no non-deprecated maps.
|
||||
if (access_infos.empty()) {
|
||||
return ReduceSoftDeoptimize(
|
||||
node, DeoptimizeReason::kInsufficientTypeFeedbackForGenericNamedAccess);
|
||||
if (flags() & kBailoutOnUninitialized) {
|
||||
return ReduceSoftDeoptimize(
|
||||
node,
|
||||
DeoptimizeReason::kInsufficientTypeFeedbackForGenericNamedAccess);
|
||||
}
|
||||
return NoChange();
|
||||
}
|
||||
|
||||
// Ensure that {index} matches the specified {name} (if {index} is given).
|
||||
|
Loading…
Reference in New Issue
Block a user