1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-27 05:30:23 +02:00
guile/module/language/tree-il
Andy Wingo 4118f09030 CPS conversion does not introduce "throw"
This keeps things higher level, and is a step towards structured
exceptions in guile.

* module/language/cps/guile-vm/reify-primitives.scm (reify-primitives):
Turn raise-type-error, raise-range-error, and raise-arity-error into
variants of "throw".  Lower raise-exception to a non-tail primcall.

* module/language/tree-il/compile-cps.scm: Instead of residualizing
"throw/value+data" throws, exceptions introduced by CPS lowering are
more structured: raise-type-error, raise-range-error, and
raise-arity-error.  Also, lower raise-exception to an ordinary `$throw`
instead of eagerly producing the non-tail call to a $prim.
2023-11-23 10:25:02 +01:00
..
analyze.scm Allow functions to mark themselves as maybe-unused 2023-08-24 11:43:15 +02:00
compile-bytecode.scm Allow string->utf8 to constant-fold 2023-11-15 10:44:21 +01:00
compile-cps.scm CPS conversion does not introduce "throw" 2023-11-23 10:25:02 +01:00
cps-primitives.scm Allow string->utf8 to constant-fold 2023-11-15 10:44:21 +01:00
debug.scm Use tree-il-srcv instead of tree-il-src 2023-06-19 13:53:01 +02:00
effects.scm peval: better primcall folding in effect contexts 2023-11-15 19:31:24 +01:00
eta-expand.scm Add eta-expansion pass after peval 2020-01-15 16:11:15 +01:00
fix-letrec.scm Excise use of record-case 2023-06-19 13:53:01 +02:00
inlinable-exports.scm Fix reproducibility for inlinable-exports 2022-02-01 14:50:44 +01:00
letrectify.scm Use tree-il-srcv instead of tree-il-src 2023-06-19 13:53:01 +02:00
optimize.scm Implement cross-module inlining 2021-05-11 21:39:07 +02:00
peval.scm peval: better primcall folding in effect contexts 2023-11-15 19:31:24 +01:00
primitives.scm Allow string->utf8 to constant-fold 2023-11-15 10:44:21 +01:00
resolve-free-vars.scm -Oresolve-free-vars pass gracefully handles failed autoloads. 2022-01-11 21:32:40 +01:00
spec.scm Change -O1 compiler to use baseline and also resolve primitives 2020-06-01 21:15:39 +02:00