mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-17 23:42:24 +02:00
Better aliased primcall compilation
* libguile/vm-engine.c (define!): Rename from define. * module/language/cps/arities.scm (fix-clause-arities): If a prim aliases an RTL instruction with a different name and we reify a primcall, reify the instruction name. * module/language/cps/compile-rtl.scm (emit-rtl-sequence): Update emit-define! for new name. * module/language/cps/primitives.scm (*rtl-instruction-aliases*): Add bytevector native accessors.
This commit is contained in:
parent
becce37b58
commit
6165d8120d
4 changed files with 29 additions and 6 deletions
|
@ -280,7 +280,7 @@
|
|||
(($ $primcall 'set-cdr! (pair value))
|
||||
(emit-set-cdr! asm (slot pair) (slot value)))
|
||||
(($ $primcall 'define! (sym value))
|
||||
(emit-define asm (slot sym) (slot value)))
|
||||
(emit-define! asm (slot sym) (slot value)))
|
||||
(($ $primcall 'push-fluid (fluid val))
|
||||
(emit-push-fluid asm (slot fluid) (slot val)))
|
||||
(($ $primcall 'pop-fluid ())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue