1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 06:20:30 +02:00

Add optimizer and backend support for gc-pointer-ref

* 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/reify-primitives.scm (reify-primitives):
* module/language/cps/slot-allocation.scm (compute-var-representations):
* module/language/cps/specialize-primcalls.scm (specialize-primcalls):
* module/language/cps/types.scm (gc-pointer-ref/immediate):
  (gc-pointer-set!/immediate):
* module/system/vm/assembler.scm: Add support for pointer-ref.
This commit is contained in:
Andy Wingo 2018-01-10 21:56:30 +01:00
parent 9222e4df4b
commit d355b42a3e
8 changed files with 34 additions and 0 deletions

View file

@ -765,6 +765,8 @@ are comparable with eqv?. A tmp slot may be used."
'srsh 'srsh/immediate
'bv-s8-ref 'bv-s16-ref 'bv-s32-ref 'bv-s64-ref))
(intmap-add representations var 's64))
(($ $primcall (or 'gc-pointer-ref/immediate))
(intmap-add representations var 'gcptr))
(_
(intmap-add representations var 'scm))))
(vars