mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-26 13:10:22 +02:00
Allow jit_begin_data to declare max data size
* lightening.h: * lightening/lightening.c (jit_begin_data): Add max data size parameter. If nonzero, can allow the JIT to avoid prematurely emitting a constant pool. (jit_end_data): Allow pending literals. * tests/jmp_table.c (run_test): Use new API.
This commit is contained in:
parent
91c1591e41
commit
44b07aef4b
3 changed files with 10 additions and 10 deletions
|
@ -17,7 +17,7 @@ run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
|
|||
jit_ldxr(j, JIT_R1, JIT_R1, JIT_R0);
|
||||
jit_jmpr(j, JIT_R1);
|
||||
|
||||
jit_begin_data (j);
|
||||
jit_begin_data (j, (NTARGETS + 1) * sizeof(intptr_t));
|
||||
jit_align(j, sizeof(intptr_t));
|
||||
jit_patch_here(j, table);
|
||||
jit_reloc_t targets[NTARGETS];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue