summaryrefslogtreecommitdiff
path: root/libguile/vm-engine.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2010-09-16 12:14:55 +0200
committerAndy Wingo <wingo@pobox.com>2010-09-16 12:16:02 +0200
commitc45d4d775d47bd80650e9888bf47815a03b04332 (patch)
tree69f38925f200a57d7ec3d3d487da7b5f51b50a12 /libguile/vm-engine.c
parent7c42238610dbf5780d9aeb12ca799c83f9f6167e (diff)
downloadguile-c45d4d775d47bd80650e9888bf47815a03b04332.tar.gz
trim our set of vm hooks
* libguile/vm.h (SCM_VM_PUSH_CONTINUATION_HOOK) (SCM_VM_POP_CONTINUATION_HOOK): New hooks, to replace enter/exit/return. (SCM_VM_BOOT_HOOK, SCM_VM_HALT_HOOK, SCM_VM_BREAK_HOOK): Remove these useless hooks. * libguile/vm.c (scm_vm_push_continuation_hook) (scm_vm_pop_continuation_hook): New accessors. * libguile/vm-i-system.c: Remove boot, halt, break, enter, exit, and return hooks. Also remove the break instruction. Instead now when we push a new continuation onto the stack we call PUSH_CONTINUATION_HOOK, and when we pop via a return we call POP_CONTINUATION_HOOK. APPLY_HOOK is now decoupled from continuation pushes and pops. * libguile/vm-engine.h: * libguile/vm-engine.c: Adapt for hooks. * module/system/vm/trace.scm (vm-trace): Adapt for hooks. Also revive the #:instructions? #t mode. * module/system/vm/vm.scm: Adapt exports for new set of hooks.
Diffstat (limited to 'libguile/vm-engine.c')
-rw-r--r--libguile/vm-engine.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libguile/vm-engine.c b/libguile/vm-engine.c
index ff41ce4b6..5b38060d3 100644
--- a/libguile/vm-engine.c
+++ b/libguile/vm-engine.c
@@ -104,7 +104,6 @@ VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
}
/* Let's go! */
- BOOT_HOOK ();
NEXT;
#ifndef HAVE_LABELS_AS_VALUES