1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00

Remove check for instrument-entry

* libguile/jit.c (emit_indirect_tail_call): If everything starts with
  instrument-entry, and thus has a vcode pointer, no need to emit a
  dynamic check.
This commit is contained in:
Andy Wingo 2019-05-27 19:22:23 +02:00
parent 9c5098ab25
commit 1128dbc444

View file

@ -797,13 +797,6 @@ static void
emit_indirect_tail_call (scm_jit_state *j)
{
emit_get_callee_vcode (j, T0);
/* FIXME: If all functions start with instrument-entry, no need for
this check. */
emit_get_vcode_low_byte (j, T1, T0);
jit_reloc_t instrumented = jit_beqi (j->jit, T1, scm_op_instrument_entry);
jit_breakpoint (j->jit);
jit_patch_here (j->jit, instrumented);
emit_get_ip_relative_addr (j, T1, T0, 1);
emit_ldxi (j, T1, T1, 0);
jit_reloc_t no_mcode = jit_beqi (j->jit, T1, 0);