Commit b205858
Generalize NewWithArgs
I noted another useless boxing (in Positioned.scala), where we have
```
(new Span(x): Span).coord
```
The allocation should be eliminated but was not.1 parent ee9b034 commit b205858
File tree
2 files changed
+23
-7
lines changed- compiler
- src/dotty/tools/dotc/transform
- test/dotty/tools/backend/jvm
2 files changed
+23
-7
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
986 | | - | |
| 986 | + | |
| 987 | + | |
987 | 988 | | |
988 | 989 | | |
989 | 990 | | |
990 | 991 | | |
991 | 992 | | |
992 | 993 | | |
993 | | - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
994 | 998 | | |
995 | | - | |
996 | 999 | | |
| 1000 | + | |
997 | 1001 | | |
998 | | - | |
| 1002 | + | |
| 1003 | + | |
999 | 1004 | | |
1000 | 1005 | | |
1001 | 1006 | | |
1002 | 1007 | | |
1003 | 1008 | | |
1004 | | - | |
1005 | | - | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1006 | 1018 | | |
1007 | 1019 | | |
1008 | 1020 | | |
| |||
0 commit comments