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

Update use of jit_begin_data API

* libguile/jit.c (compile_jtable): Pass computed jump table size.
This commit is contained in:
Andy Wingo 2020-07-30 14:12:26 +02:00
parent d4e730a458
commit 2aa05ff3c4

View file

@ -4368,7 +4368,7 @@ compile_jtable (scm_jit_state *j, uint32_t idx, uint32_t len,
jit_jmpr (j->jit, T0);
/* Here's the table itself. */
jit_begin_data (j->jit);
jit_begin_data (j->jit, sizeof(intptr_t) * len);
jit_align (j->jit, sizeof(intptr_t));
jit_patch_here (j->jit, table);
for (size_t i = 0; i + 1 < len; i++) {