From 9947574b9cad74fbf04fa44d49647c591590c511 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 16 Mar 2023 10:41:12 -0700 Subject: Refactor jit_func_t and jit_exec I closed https://github.com/ruby/ruby/pull/7543, but part of the diff seems useful regardless, so I extracted it. --- yjit.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'yjit.c') diff --git a/yjit.c b/yjit.c index a9d1d2c38b..8e8342971e 100644 --- a/yjit.c +++ b/yjit.c @@ -1023,9 +1023,6 @@ rb_yjit_vm_unlock(unsigned int *recursive_lock_level, const char *file, int line rb_vm_lock_leave(recursive_lock_level, file, line); } -// Pointer to a YJIT entry point (machine code generated by YJIT) -typedef VALUE (*yjit_func_t)(rb_execution_context_t *, rb_control_frame_t *); - bool rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec) { @@ -1038,7 +1035,7 @@ rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec) uint8_t *code_ptr = rb_yjit_iseq_gen_entry_point(iseq, ec); if (code_ptr) { - iseq->body->jit_func = (yjit_func_t)code_ptr; + iseq->body->jit_func = (rb_jit_func_t)code_ptr; } else { iseq->body->jit_func = 0; -- cgit v1.2.3