mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-22 04:30:19 +02:00
re-enable assembly packing
* module/language/glil/compile-assembly.scm (glil->assembly): Enable assembly packing, for e.g. (make-int8:0).
This commit is contained in:
parent
81600208f4
commit
194566b0ec
2 changed files with 4 additions and 4 deletions
|
@ -66,11 +66,11 @@
|
|||
(map (lambda (x) (cons (cdr x) (car x))) *abbreviations*))
|
||||
|
||||
(define (assembly-pack code)
|
||||
(or (assoc-ref code *abbreviations*)
|
||||
(or (assoc-ref *abbreviations* code)
|
||||
code))
|
||||
|
||||
(define (assembly-unpack code)
|
||||
(or (assoc-ref code *expansions*)
|
||||
(or (assoc-ref *expansions* code)
|
||||
code))
|
||||
|
||||
|
||||
|
|
|
@ -137,9 +137,9 @@
|
|||
(define (glil->assembly glil nargs nexts-stack bindings
|
||||
source-alist label-alist object-alist addr)
|
||||
(define (emit-code x)
|
||||
(values x bindings source-alist label-alist object-alist))
|
||||
(values (map assembly-pack x) bindings source-alist label-alist object-alist))
|
||||
(define (emit-code/object x object-alist)
|
||||
(values x bindings source-alist label-alist object-alist))
|
||||
(values (map assembly-pack x) bindings source-alist label-alist object-alist))
|
||||
|
||||
(record-case glil
|
||||
((<glil-program> nargs nrest nlocs nexts meta body closure-level)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue