1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-06 04:00:26 +02:00
guile/module/system/vm
Andy Wingo d08cc4f6e2 Allow string->utf8 to constant-fold
* module/language/tree-il/primitives.scm (*interesting-primitive-names*):
(*primitive-accessors*): Add string->utf8, utf8->string, and
string-utf8-length.
(primitive-module): New public function, moved here from (language
tree-il compile-bytecode).

* module/language/tree-il/compile-bytecode.scm: Use primitive-module
from (language tree-il primitives).

* module/language/tree-il/peval.scm (peval): A bugfix: load primitives
from their proper module.  Allows bytevector primitives to fold.

* module/language/cps/guile-vm/reify-primitives.scm:
* module/language/cps/effects-analysis.scm:
* module/language/cps/types.scm
* module/language/tree-il/primitives.scm:
* module/language/tree-il/cps-primitives.scm:
* module/language/tree-il/effects.scm (make-effects-analyzer):
Add string->utf8, utf8->string, and string-utf8-length.

* module/language/tree-il/compile-cps.scm (string->utf8)
(string-utf8-length, utf8->string): New custom lowerers, including type
checks and an unboxed result for string-utf8-length.

* module/system/vm/assembler.scm:
* libguile/intrinsics.h:
* libguile/intrinsics.c: Because string-utf8-length returns an unboxed
value, we need an intrinsic for it; go ahead and add an intrinsic for
string->utf8 and utf8->string too, as we will likely be able to use
these in the future.
2023-11-15 10:44:21 +01:00
..
assembler.scm Allow string->utf8 to constant-fold 2023-11-15 10:44:21 +01:00
coverage.scm Add missing #:modules argument for coverage-data->lcov. 2022-06-16 10:01:06 +02:00
debug.scm Fix frame-call-representation for callees without closures 2019-11-27 15:04:55 +01:00
disassembler.scm Better compilation of calls to raise-exception 2023-08-28 12:11:19 +02:00
dwarf.scm Remove unnecessary module imports. 2023-02-24 16:49:00 +01:00
elf.scm Remove unnecessary module imports. 2023-02-24 16:49:00 +01:00
frame.scm Remove unnecessary module imports. 2023-02-24 16:49:00 +01:00
inspect.scm Remove unnecessary module imports. 2023-02-24 16:49:00 +01:00
linker.scm Remove unnecessary module imports. 2023-02-24 16:49:00 +01:00
loader.scm Rename objcodes?.{scm,c,h} to loader.{scm,c,h} 2013-11-19 21:45:07 +01:00
program.scm Remove unnecessary module imports. 2023-02-24 16:49:00 +01:00
trace.scm Remove unnecessary module imports. 2023-02-24 16:49:00 +01:00
trap-state.scm Remove unnecessary module imports. 2023-02-24 16:49:00 +01:00
traps.scm Remove unnecessary module imports. 2023-02-24 16:49:00 +01:00
vm.scm VM manages hook sets itself 2018-09-14 08:52:24 +02:00