mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 23:50:19 +02:00
Remove optimizer and backend support for struct ops
* module/language/cps/compile-bytecode.scm: * module/language/cps/cse.scm: * module/language/cps/effects-analysis.scm: * module/language/cps/reify-primitives.scm: * module/language/cps/specialize-primcalls.scm: * module/language/cps/types.scm: * module/language/tree-il/cps-primitives.scm: * module/system/vm/assembler.scm: Remove support for struct-ref, struct-set!, allocate-struct, struct-vtable CPS primcalls and bytecode instructions.
This commit is contained in:
parent
91bf9b1db3
commit
dd203e5d7d
8 changed files with 0 additions and 104 deletions
|
@ -172,24 +172,8 @@
|
|||
(emit-word-ref/immediate asm (from-sp dst) (from-sp (slot obj)) idx))
|
||||
(($ $primcall 'pointer-ref/immediate (annotation . idx) (obj))
|
||||
(emit-pointer-ref/immediate asm (from-sp dst) (from-sp (slot obj)) idx))
|
||||
(($ $primcall 'struct-ref/immediate idx (struct))
|
||||
(emit-struct-ref/immediate asm (from-sp dst) (from-sp (slot struct))
|
||||
idx))
|
||||
(($ $primcall 'free-ref idx (closure))
|
||||
(emit-free-ref asm (from-sp dst) (from-sp (slot closure)) idx))
|
||||
(($ $primcall 'allocate-struct #f (vtable nfields))
|
||||
(emit-allocate-struct asm (from-sp dst) (from-sp (slot vtable))
|
||||
(from-sp (slot nfields))))
|
||||
(($ $primcall 'allocate-struct/immediate nfields (vtable))
|
||||
(emit-allocate-struct/immediate asm (from-sp dst)
|
||||
(from-sp (slot vtable))
|
||||
nfields))
|
||||
(($ $primcall 'struct-ref #f (struct n))
|
||||
(emit-struct-ref asm (from-sp dst) (from-sp (slot struct))
|
||||
(from-sp (slot n))))
|
||||
(($ $primcall 'struct-ref/immediate idx (struct))
|
||||
(emit-struct-ref/immediate asm (from-sp dst) (from-sp (slot struct))
|
||||
idx))
|
||||
(($ $primcall 'char->integer #f (src))
|
||||
(emit-char->integer asm (from-sp dst) (from-sp (slot src))))
|
||||
(($ $primcall 'integer->char #f (src))
|
||||
|
@ -321,12 +305,6 @@
|
|||
(($ $primcall 'free-set! idx (closure value))
|
||||
(emit-free-set! asm (from-sp (slot closure)) (from-sp (slot value))
|
||||
idx))
|
||||
(($ $primcall 'struct-set! #f (struct index value))
|
||||
(emit-struct-set! asm (from-sp (slot struct)) (from-sp (slot index))
|
||||
(from-sp (slot value))))
|
||||
(($ $primcall 'struct-set!/immediate idx (struct value))
|
||||
(emit-struct-set!/immediate asm (from-sp (slot struct)) idx
|
||||
(from-sp (slot value))))
|
||||
(($ $primcall 'string-set! #f (string index char))
|
||||
(emit-string-set! asm (from-sp (slot string)) (from-sp (slot index))
|
||||
(from-sp (slot char))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue