Commit f581341
[dart2js] Use static type refinement for getters in SSA
This helps with generic fields of classes that have contexts with
concrete types, e.g Flutter's `IntTween extends Tween<int>` has `int?`
fields `begin` and `end`. This helps remove some `HPrimitiveCheck`
instructions.
Bug: #60327
Change-Id: Ic2022cc15e024f596ad30f3134ec6c325c892dcf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426660
Commit-Queue: Stephen Adams <[email protected]>
Reviewed-by: Mayank Patke <[email protected]>1 parent cce62d3 commit f581341
File tree
3 files changed
+20
-7
lines changed- pkg/compiler/lib/src/ssa
3 files changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7031 | 7031 | | |
7032 | 7032 | | |
7033 | 7033 | | |
7034 | | - | |
| 7034 | + | |
| 7035 | + | |
| 7036 | + | |
7035 | 7037 | | |
7036 | 7038 | | |
7037 | 7039 | | |
| |||
7042 | 7044 | | |
7043 | 7045 | | |
7044 | 7046 | | |
7045 | | - | |
| 7047 | + | |
7046 | 7048 | | |
7047 | | - | |
| 7049 | + | |
7048 | 7050 | | |
7049 | 7051 | | |
7050 | 7052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1965 | 1965 | | |
1966 | 1966 | | |
1967 | 1967 | | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
1968 | 1982 | | |
1969 | 1983 | | |
1970 | 1984 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
| 449 | + | |
453 | 450 | | |
454 | 451 | | |
455 | 452 | | |
| |||
0 commit comments