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

Tweak to instrument-entry

* libguile/vm-engine.c (instrument-entry): Eagerly check if data->mcode
  is already set, and in that case just jump directly without checking
  the counter.
This commit is contained in:
Andy Wingo 2018-08-20 12:45:07 +02:00
parent 9c76a1ad42
commit 916c570557

View file

@ -463,6 +463,14 @@ VM_NAME (scm_thread *thread)
data = (struct scm_jit_function_data *) (ip + data_offset);
if (data->mcode)
{
SYNC_IP ();
scm_jit_enter_mcode (thread, data->mcode);
CACHE_REGISTER ();
NEXT (0);
}
if (data->counter > SCM_JIT_COUNTER_THRESHOLD)
{
const uint8_t *mcode;