mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
Renumber functions before emitting code
* module/language/cps/compile-bytecode.scm (compile-bytecode): Renumber a function before going to compile it, so that the vars and labels are contiguous within each function.
This commit is contained in:
parent
f05517b24e
commit
62b7180bfd
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
|||
#:use-module (language cps primitives)
|
||||
#:use-module (language cps prune-top-level-scopes)
|
||||
#:use-module (language cps reify-primitives)
|
||||
#:use-module (language cps renumber)
|
||||
#:use-module (language cps simplify)
|
||||
#:use-module (language cps slot-allocation)
|
||||
#:use-module (language cps specialize-primcalls)
|
||||
|
@ -525,6 +526,7 @@
|
|||
(exp (optimize exp opts))
|
||||
(exp (convert-closures exp))
|
||||
(exp (reify-primitives exp))
|
||||
(exp (renumber exp))
|
||||
(asm (make-assembler)))
|
||||
(visit-funs (lambda (fun)
|
||||
(compile-fun fun asm))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue