From cd8d20cd1fbcf9bf9d438b306beb65b2417fcc04 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 8 Aug 2023 16:06:22 -0700 Subject: YJIT: Compile exception handlers (#8171) Co-authored-by: Maxime Chevalier-Boisvert --- vm_core.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 77861372ff..d9d926d2ad 100644 --- a/vm_core.h +++ b/vm_core.h @@ -503,10 +503,17 @@ struct rb_iseq_constant_body { const rb_iseq_t *mandatory_only_iseq; #if USE_RJIT || USE_YJIT - // Function pointer for JIT code - rb_jit_func_t jit_func; - // Number of total calls with jit_exec() - long unsigned total_calls; + // Function pointer for JIT code on jit_exec() + rb_jit_func_t jit_entry; + // Number of calls on jit_exec() + long unsigned jit_entry_calls; +#endif + +#if USE_YJIT + // Function pointer for JIT code on jit_exec_exception() + rb_jit_func_t jit_exception; + // Number of calls on jit_exec_exception() + long unsigned jit_exception_calls; #endif #if USE_RJIT -- cgit v1.2.3