Commit 40ffa5a
[dart2js] Move decision to do static type refinement to dataflow
This is a follow-up to https://dart-review.googlesource.com/c/sdk/+/426660
The "using" of the static type didn't work in loops since the variables used in the loop start out as phis with a top type, so the guard to avoid trusting the static type for legacy js-interop always applied.
There are very few code differences with this change, but if we can address the TODOs, especially to partition Dart closures from JavaScriptFunctions, there are some nice changes in loops that call function parameters.
Bug: #60327
Change-Id: I76252d99b8047f74547d34ddc10e23d1fa380b2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426820
Reviewed-by: Mayank Patke <[email protected]>
Commit-Queue: Stephen Adams <[email protected]>1 parent 893e37a commit 40ffa5a
2 files changed
+33
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7030 | 7030 | | |
7031 | 7031 | | |
7032 | 7032 | | |
7033 | | - | |
7034 | | - | |
7035 | | - | |
7036 | | - | |
7037 | | - | |
7038 | | - | |
7039 | | - | |
7040 | | - | |
7041 | | - | |
7042 | | - | |
7043 | | - | |
| 7033 | + | |
| 7034 | + | |
| 7035 | + | |
| 7036 | + | |
| 7037 | + | |
7044 | 7038 | | |
7045 | 7039 | | |
7046 | 7040 | | |
| |||
7052 | 7046 | | |
7053 | 7047 | | |
7054 | 7048 | | |
7055 | | - | |
7056 | | - | |
7057 | | - | |
7058 | | - | |
7059 | | - | |
7060 | | - | |
7061 | | - | |
7062 | | - | |
7063 | | - | |
7064 | | - | |
7065 | | - | |
7066 | | - | |
7067 | 7049 | | |
7068 | 7050 | | |
7069 | 7051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1967 | 1967 | | |
1968 | 1968 | | |
1969 | 1969 | | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
1970 | 1982 | | |
1971 | 1983 | | |
1972 | 1984 | | |
| |||
1975 | 1987 | | |
1976 | 1988 | | |
1977 | 1989 | | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
1978 | 2006 | | |
1979 | 2007 | | |
1980 | 2008 | | |
| |||
0 commit comments