Refactorings to apply-hook and push-continuation-hook
authorAndy Wingo <wingo@pobox.com>
Sun, 4 May 2014 12:09:42 +0000 (14:09 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 4 May 2014 12:09:42 +0000 (14:09 +0200)
commitf5cb70e94a37a069e04244312937ca2868de5135
tree2d0b831233a4469968ad8846dc9126cb6898f501
parent7c080187bc55e84159b99faa9b7ae9f0a8ae90d2
Refactorings to apply-hook and push-continuation-hook

* libguile/vm-engine.c (vm_engine): Always invoke the apply hook after
  the ip has been reset.  Avoids problems in frame-bindings, which
  builds its bindings map based on the IP.  Invoke push-continuation
  before linking the new frame, so that more locals are available to the
  frame inspector.

* module/system/vm/traps.scm (trap-in-procedure): No need for a
  push-cont handler, as the apply handler will exit the frame.
libguile/vm-engine.c
module/system/vm/traps.scm