diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-03-19 06:45:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-03-19 06:45:54 -0700 |
commit | 85489502f64def96741c1fa43e92b7695c27ba92 (patch) | |
tree | f93a29a2f9ea05479a234e2a70b9d485a4e7971e /inst.nsi | |
parent | 3f54a728718552801b5c786dc38d6540cfa360ab (diff) | |
download | txr-85489502f64def96741c1fa43e92b7695c27ba92.tar.gz txr-85489502f64def96741c1fa43e92b7695c27ba92.tar.bz2 txr-85489502f64def96741c1fa43e92b7695c27ba92.zip |
compiler: use VM's function table for global calls.
* share/txr/stdlib/compiler.tl (compiler): New slots
fidx-cntr, fidx and ftab.
(compiler get-fidx, compiler get-funvec): New methods.
(compiler comp-call-impl): New method.
(compiler comp-call): Look up the symbol to determine
whether the function lexical or global. Call
comp-call-impl appropriately to generate a
gcall or call.
(usr:compile-toplevel): Obtain the funvec from the compiler
and pass to vm-make-desc.
Diffstat (limited to 'inst.nsi')
0 files changed, 0 insertions, 0 deletions