1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 06:20:23 +02:00

bind-rest inst uses cons-rest intrinsic

* libguile/vm-engine.c (bind-rest): Use cons-rest intrinsic to build the
  rest list.
This commit is contained in:
Andy Wingo 2018-06-27 17:40:46 +02:00
parent 294e627c6b
commit 7e11c992f3

View file

@ -1130,13 +1130,7 @@ VM_NAME (scm_thread *thread, jmp_buf *registers, int resume)
else
{
SYNC_IP ();
while (nargs-- > dst)
{
rest = scm_inline_cons (thread, FP_REF (nargs), rest);
FP_SET (nargs, SCM_UNDEFINED);
}
rest = scm_vm_intrinsics.cons_rest (thread, dst);
RESET_FRAME (dst + 1);
}