diff options
author | Andy Wingo <wingo@pobox.com> | 2015-11-26 16:36:22 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2015-12-01 10:57:20 +0100 |
commit | 02fc5a772bc95bbd70a81b8589bf261a3822f9bd (patch) | |
tree | 36504315d7c2622762acb9744360eeef5c07f83e /libguile/vm.c | |
parent | d729a0dc757943c2bafb0cb300fc1ae7b3f56e91 (diff) | |
download | guile-02fc5a772bc95bbd70a81b8589bf261a3822f9bd.tar.gz |
Identify boot continuations by code, not closure
* libguile/vm.h:
* libguile/vm.c (scm_i_vm_is_boot_continuation_code): New internal
procedure.
* libguile/stacks.c (scm_make_stack):
* libguile/frames.c (scm_c_frame_previous): Use new helper to identify
boot frames.
Diffstat (limited to 'libguile/vm.c')
-rw-r--r-- | libguile/vm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libguile/vm.c b/libguile/vm.c index 5ea6b2bd4..014ee65f5 100644 --- a/libguile/vm.c +++ b/libguile/vm.c @@ -661,6 +661,12 @@ static const scm_t_uint32 vm_builtin_call_with_current_continuation_code[] = { }; +int +scm_i_vm_is_boot_continuation_code (scm_t_uint32 *ip) +{ + return ip == vm_boot_continuation_code; +} + static SCM scm_vm_builtin_ref (unsigned idx) { |