diff options
author | Andy Wingo <wingo@pobox.com> | 2015-10-18 22:59:23 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2015-10-21 11:49:20 +0200 |
commit | 72353de77d0a06f158d8af66a2540015658e2574 (patch) | |
tree | 01347b554843ae90551d63f5240e21dce8b57072 /libguile/eval.c | |
parent | 8f027385db228d68193ad7316cf0b79489ac038b (diff) | |
download | guile-72353de77d0a06f158d8af66a2540015658e2574.tar.gz |
Replace dynamic link on stack with previous frame size
* libguile/frames.h (SCM_FRAME_DYNAMIC_LINK)
(SCM_FRAME_SET_DYNAMIC_LINK): Instead of storing the absolute value of
the previous FP, store its offset from the current FP. This allows us
to avoid relinking when composing continuations or when relocating the
stack.
* libguile/frames.c (scm_frame_dynamic_link, scm_c_frame_previous): No
need to relocate the dynamic link.
* libguile/vm.c (vm_return_to_continuation_inner):
(vm_reinstate_partial_continuation_inner, vm_expand_stack_inner):
Don't relocate the frame pointer chain.
(scm_i_vm_mark_stack): Terminate when FP is above stack_top, not when
0.
(make_vm): Init FP to stack_top.
Diffstat (limited to 'libguile/eval.c')
0 files changed, 0 insertions, 0 deletions