VM robustness for optimized closures
authorAndy Wingo <wingo@pobox.com>
Wed, 16 Apr 2014 17:20:23 +0000 (19:20 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 16 Apr 2014 17:20:23 +0000 (19:20 +0200)
commit73fc4e73e40d555431156ea486dd7fcff63bcad6
treed2c52f71b3caf8774c05b28f0cf467a24f0def33
parenta2ebdba7acefdc62ae8be378415f70a0aed68b2e
VM robustness for optimized closures

* libguile/vm.c (vm_error_unbound, vm_error_unbound_fluid): Remove proc
  argument.  The value in slot 0 is not necessarily the procedure being
  applied, after the prelude is done.

* libguile/vm-engine.c (vm_engine): Use LOCAL_REF (0) instead of
  SCM_FRAME_PROGRAM, and adapt to above changes.
libguile/vm-engine.c
libguile/vm.c