mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
Add tag-fixnum instruction
* libguile/vm-engine.c (tag-fixnum): New instruction. * module/language/cps/compile-bytecode.scm (compile-function): * module/language/cps/cse.scm (compute-equivalent-subexpressions): * module/language/cps/effects-analysis.scm: * module/language/cps/types.scm (&min/fixnum, &max/fixnum, tag-fixnum): * module/system/vm/assembler.scm: Add support for the new instruction.
This commit is contained in:
parent
7bfdd46ea5
commit
8b5f9648ff
6 changed files with 27 additions and 2 deletions
|
@ -271,6 +271,8 @@
|
|||
(from-sp (slot expected)) (from-sp (slot desired))))
|
||||
(($ $primcall 'untag-fixnum #f (src))
|
||||
(emit-untag-fixnum asm (from-sp dst) (from-sp (slot src))))
|
||||
(($ $primcall 'tag-fixnum #f (src))
|
||||
(emit-tag-fixnum asm (from-sp dst) (from-sp (slot src))))
|
||||
(($ $primcall name #f args)
|
||||
;; FIXME: Inline all the cases.
|
||||
(let ((inst (prim-instruction name)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue