summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-16 10:41:12 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-16 10:42:17 -0700
commit9947574b9cad74fbf04fa44d49647c591590c511 (patch)
tree0a36aa340dc9747c8ef277f96f9712cce8d69b26 /vm.c
parenta8e7fee80129b0ba360c2671582117c8e18a6464 (diff)
downloadruby-9947574b9cad74fbf04fa44d49647c591590c511.tar.gz
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.
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index b4aa2a04a9..0f90c9a1e2 100644
--- a/vm.c
+++ b/vm.c
@@ -370,7 +370,7 @@ static VALUE vm_invoke_proc(rb_execution_context_t *ec, rb_proc_t *proc, VALUE s
#if USE_RJIT || USE_YJIT
// Try to compile the current ISeq in ec. Return 0 if not compiled.
-static inline jit_func_t
+static inline rb_jit_func_t
jit_compile(rb_execution_context_t *ec)
{
// Increment the ISEQ's call counter
@@ -405,7 +405,7 @@ jit_compile(rb_execution_context_t *ec)
static inline VALUE
jit_exec(rb_execution_context_t *ec)
{
- jit_func_t func = jit_compile(ec);
+ rb_jit_func_t func = jit_compile(ec);
if (func) {
// Call the JIT code
return func(ec, ec->cfp);