1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 04:40:29 +02:00
guile/module/language/tree-il
Ludovic Courtès 2aed3c117c psyntax: Pass source vectors to tree-il constructors.
Avoiding systematic conversion from source vectors to property alists
saves 20% on the final heap size of a process doing:

  (compile-file FILE #:optimization-level 1)

where FILE is large.

* module/language/tree-il.scm (tree-il-src/ensure-alist): New procedure
with setter.  Export as 'tree-il-src'.
* module/ice-9/psyntax.scm (build-void, build-call)
(build-conditional, build-lexical-reference, build-lexical-assignment)
(build-global-reference, build-global-assignment)
(build-global-definition, build-simple-lambda, build-case-lambda)
(build-lambda-case, build-primcall, build-primref)
(build-data, build-sequence, build-let, build-named-let)
(build-letrec, expand-body): Remove (sourcev->alist src) calls.
* module/ice-9/psyntax-pp.scm: Regenerate.
* module/language/tree-il/analyze.scm (shadowed-toplevel-analysis): Use
'tree-il-src' instead of accessing the 'src' slot directly.
* module/system/vm/assembler.scm (link-debug): Adjust so PC can be
followed by a vector or an alist.
2022-02-07 12:23:35 +01:00
..
analyze.scm psyntax: Pass source vectors to tree-il constructors. 2022-02-07 12:23:35 +01:00
compile-bytecode.scm Baseline compiler no longer swaps rsh/lsh when transforming ash calls. 2021-09-20 23:27:39 +02:00
compile-cps.scm Add new pass to optimize away return value count checks 2021-11-15 15:32:54 +01:00
cps-primitives.scm CPS compiler reduces eq? on constant to eq-constant? 2020-08-03 22:19:18 +02:00
debug.scm Add "mod" field to tree-il toplevel ref, set, define 2019-08-18 22:27:12 +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 Optimize letrec* binding order in fix-letrec 2021-04-21 22:41:12 +02:00
inlinable-exports.scm Fix reproducibility for inlinable-exports 2022-02-01 14:50:44 +01:00
letrectify.scm Letrectify links module defs with uses 2021-05-11 21:39:07 +02:00
optimize.scm Implement cross-module inlining 2021-05-11 21:39:07 +02:00
peval.scm peval cross-module-inlining gracefully handles missing interface 2022-01-17 21:25:08 +01:00
primitives.scm Add ‘expt’ to the list of effect-free primitives. 2021-05-18 13:42:34 +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