vm_core.h: unify YJIT ifdefs

This commit is contained in:
Jean Boussier 2025-04-02 17:41:33 +02:00
parent 3a7b03242f
commit fe9ebb2456
Notes: git 2025-04-02 17:40:30 +00:00

View File

@ -539,16 +539,10 @@ struct rb_iseq_constant_body {
rb_jit_func_t jit_entry; rb_jit_func_t jit_entry;
// Number of calls on jit_exec() // Number of calls on jit_exec()
long unsigned jit_entry_calls; long unsigned jit_entry_calls;
#endif
#if USE_YJIT
// Function pointer for JIT code on jit_exec_exception() // Function pointer for JIT code on jit_exec_exception()
rb_jit_func_t jit_exception; rb_jit_func_t jit_exception;
// Number of calls on jit_exec_exception() // Number of calls on jit_exec_exception()
long unsigned jit_exception_calls; long unsigned jit_exception_calls;
#endif
#if USE_YJIT
// YJIT stores some data on each iseq. // YJIT stores some data on each iseq.
void *yjit_payload; void *yjit_payload;
// Used to estimate how frequently this ISEQ gets called // Used to estimate how frequently this ISEQ gets called