1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-28 05:50:30 +02:00
guile/module/language/tree-il
Andy Wingo c2cba86785 Better compilation of calls to raise-exception
Recognize `raise-exception` in the same way we recognize `throw`, though
it is a bit less optimized and the boot story is not as complicated.

* doc/ref/vm.texi (Non-Local Control Flow Instructions):
* libguile/jit.c (compile_unreachable):
(compile_unreachable_slow):
* libguile/vm-engine.c (VM_NAME):
* module/language/cps/compile-bytecode.scm (compile-function):
* module/system/vm/assembler.scm (emit-unreachable): Add new
"unreachable" instruction, inserted after a call to non-continuable
`raise-exception`.
* module/language/tree-il/compile-cps.scm (raise-exception):
* module/language/tree-il/primitives.scm
(*interesting-primitive-names*): Recognize raise-exception, and if it is
called with just one argument, prune that branch of the control-flow
graph.
2023-08-28 12:11:19 +02:00
..
analyze.scm Allow functions to mark themselves as maybe-unused 2023-08-24 11:43:15 +02:00
compile-bytecode.scm Allow functions to mark themselves as maybe-unused 2023-08-24 11:43:15 +02:00
compile-cps.scm Better compilation of calls to raise-exception 2023-08-28 12:11:19 +02:00
cps-primitives.scm CPS compiler reduces eq? on constant to eq-constant? 2020-08-03 22:19:18 +02:00
debug.scm Use tree-il-srcv instead of tree-il-src 2023-06-19 13:53:01 +02:00
effects.scm Fix tree-il effects analysis for prompts 2021-05-01 22:16:20 +02: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 Use tree-il-srcv instead of tree-il-src 2023-06-19 13:53:01 +02:00
primitives.scm Better compilation of calls to raise-exception 2023-08-28 12:11:19 +02: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