1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00
guile/module/system
Andy Wingo 83023160b1 Simplify module variable lookup slow-path
* libguile/intrinsics.h:
* libguile/intrinsics.c (lookup_bound_public, lookup_bound_private): Two
new intrinsics.
(scm_bootstrap_intrinsics): Wire them up.
* libguile/jit.c (compile_call_scm_from_scmn_scmn):
(compile_call_scm_from_scmn_scmn_slow):
(COMPILE_X8_S24__N32__N32__C32): Add JIT support for new instruction
kind.
* libguile/vm-engine.c (call-scm<-scmn-scmn): New instruction, takes
arguments as non-immediate offsets, to avoid needless loads and register
pressure.
* module/language/cps/effects-analysis.scm: Add cases for new
primcalls.
* module/language/cps/compile-bytecode.scm (compile-function): Add new
primcalls.
* module/language/cps/reify-primitives.scm (cached-module-box): If the
variable is bound, call lookup-bound-public / lookup-bound-private as
appropriate instead of separately resolving the module, name, and doing
the bound check.
* module/language/tree-il/compile-bytecode.scm (emit-cached-module-box):
Use new instructions.
* module/system/vm/assembler.scm (define-scm<-scmn-scmn-intrinsic):
(lookup-bound-public, lookup-bound-private): Add assembler support.
2021-04-26 09:48:52 +02:00
..
base New pass: elide-arity-checks 2021-04-21 22:41:12 +02:00
repl Finish call-with-port cleanup 2021-01-12 12:17:55 +01:00
vm Simplify module variable lookup slow-path 2021-04-26 09:48:52 +02:00
foreign-library.scm On Cygwin, 'lib' DLLs use 'cyg' prefix 2021-03-13 09:09:30 -08:00
foreign-object.scm Add #:static-slot-allocation? 2015-02-06 13:25:17 +01:00
foreign.scm foreign: Add 'uintptr_t' and 'intptr_t'. 2017-11-22 16:33:57 +01:00
syntax.scm Document syntax-sourcev 2021-03-09 20:50:08 +01:00
xref.scm Remove backend support for cached-module-box et al. 2018-05-14 14:04:59 +02:00