summaryrefslogtreecommitdiffstats
path: root/combi.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-03-16 21:34:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-03-16 21:34:56 -0700
commitba498170706db2c1a53dc3427c584dd74230deef (patch)
tree57ea36d9d2c5e1faa9b808b26064769337f9a3b1 /combi.h
parentef95bcaaf056210281a5d5b6916559bad28fd217 (diff)
downloadtxr-ba498170706db2c1a53dc3427c584dd74230deef.tar.gz
txr-ba498170706db2c1a53dc3427c584dd74230deef.tar.bz2
txr-ba498170706db2c1a53dc3427c584dd74230deef.zip
vm: handle FVM function type thorughout run-time.
* gc.c (mark_obj): Recognize FVM functions and mark their vm_desc. * lib.c (equal): Handle equality for FVM. If the environment pointers are equal, consider the functions equal. (funcall, funcall1, funcall2, funcall3, funcall4): Recognize and call FVM functions. However, there is a lack of robustness here that needs to be addressed: vm_execute_closure doesn't check whether there are too many or not enough arguments. Interpreted functions have a run-time check inside bind_args. (obj_print_impl): Don't print VM functions as #<intrinsic fun...> but rather #<vm fun>.
Diffstat (limited to 'combi.h')
0 files changed, 0 insertions, 0 deletions