You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type_check_mode_ field of LocalVariable is initialized to kDoTypeCheck, which is a safe default. It keeps this conservative value in many cases where it could be given a more precise value. Only covariant parameters ever need to be checked, but the default often stays even for non-parameters.
This avoids unsound optimizations that could arise from loading a
parameter before its type had been checked.
Affects only unoptimized code.
Fixes#43464
Some considerations for a cleaner fix are described in
#43654
Change-Id: I05872e46495313e82e9c516e5f283e1bc4612300
Cq-Do-Not-Cancel-Tryjobs: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/164500
Commit-Queue: Aske Simon Christensen <[email protected]>
Reviewed-by: Martin Kustermann <[email protected]>
This avoids unsound optimizations that could arise from loading a
parameter before its type had been checked.
Affects only unoptimized code.
Fixes#43464
Some considerations for a cleaner fix are described in
#43654
Change-Id: I05872e46495313e82e9c516e5f283e1bc4612300
Cq-Do-Not-Cancel-Tryjobs: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/164500
Commit-Queue: Aske Simon Christensen <[email protected]>
Reviewed-by: Martin Kustermann <[email protected]>
The
type_check_mode_
field ofLocalVariable
is initialized tokDoTypeCheck
, which is a safe default. It keeps this conservative value in many cases where it could be given a more precise value. Only covariant parameters ever need to be checked, but the default often stays even for non-parameters.A more precise value here could also enable a cleaner and perhaps more precise solution to #43464 than the one in https://dart-review.googlesource.com/c/sdk/+/164500.
The text was updated successfully, but these errors were encountered: