Commit f52bdb9
committed
cleanup: Remove fallback post-lowering global resolution
After recent changes, essentially all global symbol scopes are
resolved by lowering, so the code in method.c that replaces
symbols by globalrefs is no longer necessary. The one small
exception to this were symbols resulting from closure conversion,
because these get inserted after the point at which lowering converts
symbols to globalrefs. However, in the current design, I think
that's basically a bug (and easily addressed by inserting
`globalref`s where appropriate). Removing this extra resolution
step is not particularly necessary, but for the upcoming
binding partition backedges, it removes an ambiguity as to
which version of the lowered code to scan. It also partially
resolves a very old todo about not performing post-hoc mutation
of lowered code (although we still do this for ccall).1 parent 6cf2b14 commit f52bdb9
File tree
6 files changed
+156
-225
lines changed- src
- stdlib/REPL/src
6 files changed
+156
-225
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3683 | 3683 | | |
3684 | 3684 | | |
3685 | 3685 | | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
3686 | 3692 | | |
3687 | 3693 | | |
3688 | 3694 | | |
3689 | 3695 | | |
3690 | | - | |
| 3696 | + | |
3691 | 3697 | | |
3692 | 3698 | | |
3693 | 3699 | | |
| |||
4242 | 4248 | | |
4243 | 4249 | | |
4244 | 4250 | | |
4245 | | - | |
| 4251 | + | |
4246 | 4252 | | |
4247 | 4253 | | |
4248 | 4254 | | |
| |||
4270 | 4276 | | |
4271 | 4277 | | |
4272 | 4278 | | |
4273 | | - | |
4274 | | - | |
| 4279 | + | |
| 4280 | + | |
4275 | 4281 | | |
4276 | 4282 | | |
4277 | 4283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
721 | | - | |
| 720 | + | |
| 721 | + | |
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
| |||
0 commit comments