mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 04:40:29 +02:00
VM opcodes only have <24-bit slot operands in the first word
* libguile/vm-engine.c (make-array): Change to only have restricted-width operands in the first word. This instruction is currently unused, however. * module/system/vm/assembler.scm (assembler): * module/system/vm/disassembler.scm (disassembler): Disallow restricted-width operands in tail words.
This commit is contained in:
parent
d6651f6903
commit
c09708f985
3 changed files with 5 additions and 29 deletions
|
@ -398,12 +398,6 @@ later by the linker."
|
|||
((U8_L24 a label)
|
||||
(record-label-reference asm label)
|
||||
(emit asm a))
|
||||
((U8_U8_I16 a b imm)
|
||||
(emit asm (pack-u8-u8-u16 a b (object-address imm))))
|
||||
((U8_U12_U12 a b)
|
||||
(emit asm (pack-u8-u12-u12 a b c)))
|
||||
((U8_U8_U8_U8 a b c d)
|
||||
(emit asm (pack-u8-u8-u8-u8 a b c d)))
|
||||
((U32 a)
|
||||
(emit asm a))
|
||||
((I32 imm)
|
||||
|
@ -432,8 +426,6 @@ later by the linker."
|
|||
(emit asm 0))
|
||||
((X8_U24 a)
|
||||
(emit asm (pack-u8-u24 0 a)))
|
||||
((X8_U12_U12 a b)
|
||||
(emit asm (pack-u8-u12-u12 0 a b)))
|
||||
((X8_L24 label)
|
||||
(record-label-reference asm label)
|
||||
(emit asm 0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue