diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-04-08 16:32:52 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-04-08 16:32:52 -0700 |
commit | eb6e492d47b14254f4e1d4ba912ca959bda4a43b (patch) | |
tree | 389072a7e84b85a6728d5b7509df9560dbce09dd /stdlib/with-stream.tl | |
parent | 73c90f20025cf3780f52ef23fac0fab4ff21c9a1 (diff) | |
download | txr-eb6e492d47b14254f4e1d4ba912ca959bda4a43b.tar.gz txr-eb6e492d47b14254f4e1d4ba912ca959bda4a43b.tar.bz2 txr-eb6e492d47b14254f4e1d4ba912ca959bda4a43b.zip |
compiler: discard wrongheaded discards.
* stdlib/compiler.tl (compiler): Remove discards slot.
(compile-in-toplevel, compile-with-fresh-tregs):
Do not save and restore discards.
(compiler maybe-mov): Method removed. It doesn't
require the compiler object so it can just be a function.
(maybe-mov): New function.
(compiler alloc-discard-treg): Method removed.
(compiler free-treg): No need to do anything with discards.
(compiler maybe-alloc-treg): No need to check discards.
(compiler (comp-setq, comp-if, comp-ift, comp-switch,
comp-block, comp-catch, comp-let, comp-fbind,
comp-lambda-impl, comp-or, comp-tree-case,
comp-load-time-lit): Use maybe-mov function instead of method.
(compiler comp-progn): Use alloc-treg rather than
alloc-discard-treg, and use maybe-mov function.
Diffstat (limited to 'stdlib/with-stream.tl')
0 files changed, 0 insertions, 0 deletions