mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
Add untag-fixnum instruction
* libguile/vm-engine.c (untag-fixnum): New instruction. * module/language/cps/compile-bytecode.scm (compile-function): * module/system/vm/assembler.scm (untag-fixnum): * module/language/cps/slot-allocation.scm (compute-var-representations): * module/language/cps/types.scm (untag-fixnum): Add compiler support for untag-fixnum.
This commit is contained in:
parent
31e7f44340
commit
c9ec866ef9
6 changed files with 22 additions and 7 deletions
|
@ -4413,7 +4413,17 @@ VM_NAME (scm_i_thread *thread, struct scm_vm *vp,
|
|||
NEXT (1);
|
||||
}
|
||||
|
||||
VM_DEFINE_OP (214, unused_214, NULL, NOP)
|
||||
VM_DEFINE_OP (214, untag_fixnum, "untag-fixnum", OP1 (X8_S12_S12) | OP_DST)
|
||||
{
|
||||
scm_t_uint16 dst, src;
|
||||
|
||||
UNPACK_12_12 (op, dst, src);
|
||||
|
||||
SP_SET_S64 (dst, SCM_I_INUM (SP_REF (src)));
|
||||
|
||||
NEXT (1);
|
||||
}
|
||||
|
||||
VM_DEFINE_OP (215, unused_215, NULL, NOP)
|
||||
VM_DEFINE_OP (216, unused_216, NULL, NOP)
|
||||
VM_DEFINE_OP (217, unused_217, NULL, NOP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue