mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
Partial continuations are RTL stubs
* libguile/control.c: Implement partial continuations as RTL programs. * libguile/programs.c (scm_i_rtl_program_minimum_arity): Add partial continuation case. * libguile/vm-engine.c (compose-continuation): Fix to look for vm_cont from the free variables. * libguile/vm-i-system.c (abort): Poison continuations captured in the stack VM, as the can't be rewound by the RTL stubs.
This commit is contained in:
parent
d6fbf0c00e
commit
d76de8716d
4 changed files with 24 additions and 70 deletions
|
@ -1273,7 +1273,7 @@ RTL_VM_NAME (SCM vm, SCM program, SCM *argv, size_t nargs_)
|
|||
scm_t_uint32 cont_idx;
|
||||
|
||||
SCM_UNPACK_RTL_24 (op, cont_idx);
|
||||
vmcont = LOCAL_REF (cont_idx);
|
||||
vmcont = SCM_RTL_PROGRAM_FREE_VARIABLE_REF (LOCAL_REF (0), cont_idx);
|
||||
|
||||
SYNC_IP ();
|
||||
VM_ASSERT (SCM_VM_CONT_REWINDABLE_P (vmcont),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue