summaryrefslogtreecommitdiffstats
path: root/tests/008/configfile.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-07-26 06:53:34 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-07-26 06:53:34 -0700
commit2939e92c0991ddcd90dfde57b05bd2b09bf058fc (patch)
tree934d6a4272985d96913fed03943a9107cbfbc175 /tests/008/configfile.txr
parent5d8d7480614be7c945e85baac1079fd49e4ca452 (diff)
downloadtxr-2939e92c0991ddcd90dfde57b05bd2b09bf058fc.tar.gz
txr-2939e92c0991ddcd90dfde57b05bd2b09bf058fc.tar.bz2
txr-2939e92c0991ddcd90dfde57b05bd2b09bf058fc.zip
compiler: compress symbol tables also.
When functions are optimized away due to constant folding, instead of replacing them with a nil, we now compact the table to close the gaps and renumber the references in the code. * stdlib/compiler.tl (compiler null-stab): Method removed. (compiler compact-dregs): Renamed to compact-dregs-and-syms. Now compacts the symbol table also. This is combined with D-reg compacting because it makes just two passes through the instruction: a pass to identify the used D registers and symbol indices, and then another pass to edit the instructions with the renamed D registers and renumbered symbol indices. (compiler optimize): Remove the call to the null-unused-data on the basic-blocks object; nulling out D regs and symbol table entries is no longer required. Fllow the rename of compact-dregs to compact-dregs-and-syms which is called the same way otherwise. * stdlib/optimize.tl (basic-blocks null-unused-data): No longer used method removed.
Diffstat (limited to 'tests/008/configfile.txr')
0 files changed, 0 insertions, 0 deletions