mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
Add scm-ref, etc instructions for generic heap object field access
* libguile/vm-engine.c (allocate-words, allocate-words/immediate) (scm-ref, scm-set!, scm-ref/tag, scm-set!/tag, scm-ref/immediate) (scm-set!/immediate): New instructions for generic access to fields in heap objects. * module/language/cps/cse.scm (compute-equivalent-subexpressions): * module/language/cps/effects-analysis.scm: * module/language/cps/reify-primitives.scm (reify-primitives): * module/language/cps/specialize-primcalls.scm (specialize-primcalls): * module/language/cps/types.scm (allocate-words) (allocate-words/immediate, scm-ref, scm-ref/immediate, scm-ref/tag) (scm-set!/tag, scm-set!, scm-set!/immediate, word-ref) (word-ref/immediate, word-set!, word-set!/immediate): * module/system/vm/assembler.scm: * module/language/cps/compile-bytecode.scm (compile-function): Add support for the new instructions.
This commit is contained in:
parent
9db628ee29
commit
315dd366ee
8 changed files with 357 additions and 14 deletions
|
@ -138,6 +138,21 @@
|
|||
emit-complex?
|
||||
emit-fraction?
|
||||
|
||||
emit-allocate-words
|
||||
emit-allocate-words/immediate
|
||||
|
||||
emit-scm-ref
|
||||
emit-scm-set!
|
||||
emit-scm-ref/tag
|
||||
emit-scm-set!/tag
|
||||
emit-scm-ref/immediate
|
||||
emit-scm-set!/immediate
|
||||
|
||||
emit-word-ref
|
||||
emit-word-set!
|
||||
emit-word-ref/immediate
|
||||
emit-word-set!/immediate
|
||||
|
||||
emit-call
|
||||
emit-call-label
|
||||
emit-tail-call
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue