diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-16 10:41:12 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-16 10:42:17 -0700 |
commit | 9947574b9cad74fbf04fa44d49647c591590c511 (patch) | |
tree | 0a36aa340dc9747c8ef277f96f9712cce8d69b26 /vm.c | |
parent | a8e7fee80129b0ba360c2671582117c8e18a6464 (diff) |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |