1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 20:00:19 +02:00

Call out to expand_stack through new VM intrinsic

* libguile/intrinsics.h (scm_t_vp_sp_intrinsic): New type.
  (SCM_FOR_ALL_VM_INTRINSICS): Add expand-stack.
* libguile/vm-engine.c (ALLOC_FRAME): Call through the intrinsics.
* libguile/vm.c (scm_bootstrap_vm): Initialize the expand-stack
  intrinsic.
This commit is contained in:
Andy Wingo 2018-06-11 21:27:37 +02:00
parent 3b463516ef
commit ceaf782770
3 changed files with 5 additions and 1 deletions

View file

@ -178,8 +178,9 @@
{ \
if (SCM_UNLIKELY (sp < vp->stack_limit)) \
{ \
struct scm_vm_intrinsics *i = (void*)intrinsics; \
SYNC_IP (); \
vm_expand_stack (vp, sp); \
i->expand_stack (vp, sp); \
CACHE_SP (); \
} \
else \