diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-03-27 21:38:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-03-27 21:38:06 -0700 |
commit | 441c92dbc628aa7e12411ec4aabc4b95f3cfeca4 (patch) | |
tree | edcc5739dae9d0a53235265e38af01b8a3c2863a | |
parent | e3fce9be4563559fff7129aad0b87fb5140449dc (diff) | |
download | txr-441c92dbc628aa7e12411ec4aabc4b95f3cfeca4.tar.gz txr-441c92dbc628aa7e12411ec4aabc4b95f3cfeca4.tar.bz2 txr-441c92dbc628aa7e12411ec4aabc4b95f3cfeca4.zip |
compiler: don't wastefully enter into dreg table.
* share/txr/stdlib/compiler.tl (compiler get-dreg): If the
input atom is nil, return the t0 register that always
holds nil.
-rw-r--r-- | share/txr/stdlib/compiler.tl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/share/txr/stdlib/compiler.tl b/share/txr/stdlib/compiler.tl index d77c4cd1..6a778ed7 100644 --- a/share/txr/stdlib/compiler.tl +++ b/share/txr/stdlib/compiler.tl @@ -122,6 +122,7 @@ (defmeth compiler get-dreg (me atom) (condlet + ((((null atom))) '(t 0)) (((dreg [me.dreg atom])) dreg) ((((< me.dreg-cntr 256))) (let* ((dreg ^(d ,(pinc me.dreg-cntr)))) |