diff options
author | Andy Wingo <wingo@pobox.com> | 2013-11-21 17:13:18 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2013-11-21 17:13:18 +0100 |
commit | 050a40db5b0b09f0b00d4d68aac67827c7f9b1ac (patch) | |
tree | c15d8b83fd8fad5626d2e115e99c55229dbb3147 /libguile/stacks.c | |
parent | 0bca90aac9a209b2ae06281b00d5c3b9939d605e (diff) | |
download | guile-050a40db5b0b09f0b00d4d68aac67827c7f9b1ac.tar.gz |
Heap frames have a "frame kind" bit
* libguile/frames.h (enum scm_vm_frame_kind, SCM_VM_FRAME_KIND)
(scm_c_make_frame): Add a "frame kind" bit to the first word. This
will allow the "stack holder" to be a non-SCM object.
* libguile/continuations.c (scm_i_continuation_to_frame):
* libguile/frames.c (scm_c_make_frame, scm_frame_previous)
* libguile/stacks.c (scm_make_stack):
* libguile/vm.c (vm_dispatch_hook): Adapt frame creators to set the
frame kind bit.
Diffstat (limited to 'libguile/stacks.c')
-rw-r--r-- | libguile/stacks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/stacks.c b/libguile/stacks.c index 97b1495b8..c478b06e2 100644 --- a/libguile/stacks.c +++ b/libguile/stacks.c @@ -258,7 +258,7 @@ SCM_DEFINE (scm_make_stack, "make-stack", 1, 0, 1, cont = scm_i_capture_current_stack (); c = SCM_VM_CONT_DATA (cont); - frame = scm_c_make_frame (cont, + frame = scm_c_make_frame (SCM_VM_FRAME_KIND_CONT, cont, (c->fp + c->reloc) - c->stack_base, (c->sp + c->reloc) - c->stack_base, c->ra); |