diff options
author | Jose Narvaez <goyox86@gmail.com> | 2021-03-06 23:46:56 +0000 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:31 -0400 |
commit | 4e2eb7695e9b45cb5d2ae757bdb5c2043d78be78 (patch) | |
tree | 71e02cd04b191b9ce66801b67736cf69d831bd0b /mjit.h | |
parent | 7f7e79d80221949f93c7ded7cbd8d26afd3dea1d (diff) |
Yet Another Ruby JIT!
Renaming uJIT to YJIT. AKA s/ujit/yjit/g.
Diffstat (limited to 'mjit.h')
-rw-r--r-- | mjit.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -16,7 +16,8 @@ #include "debug_counter.h" #include "ruby.h" -#include "ujit.h" +#include "vm_core.h" +#include "yjit.h" // Special address values of a function generated from the // corresponding iseq by MJIT: @@ -143,15 +144,15 @@ mjit_exec(rb_execution_context_t *ec) const rb_iseq_t *iseq; struct rb_iseq_constant_body *body; - if (mjit_call_p || rb_ujit_enabled_p()) { + if (mjit_call_p || rb_yjit_enabled_p()) { iseq = ec->cfp->iseq; body = iseq->body; body->total_calls++; } #ifndef MJIT_HEADER - if (rb_ujit_enabled_p() && !mjit_call_p && body->total_calls == rb_ujit_call_threshold()) { - rb_ujit_compile_iseq(iseq, ec); + if (rb_yjit_enabled_p() && !mjit_call_p && body->total_calls == rb_yjit_call_threshold()) { + rb_yjit_compile_iseq(iseq, ec); return Qundef; } #endif |