mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-15 16:20:17 +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:
parent
9c76a1ad42
commit
916c570557
1 changed files with 8 additions and 0 deletions
|
@ -463,6 +463,14 @@ VM_NAME (scm_thread *thread)
|
||||||
|
|
||||||
data = (struct scm_jit_function_data *) (ip + data_offset);
|
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)
|
if (data->counter > SCM_JIT_COUNTER_THRESHOLD)
|
||||||
{
|
{
|
||||||
const uint8_t *mcode;
|
const uint8_t *mcode;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue