aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.h
diff options
context:
space:
mode:
authorJose Narvaez <goyox86@gmail.com>2021-03-06 23:46:56 +0000
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:31 -0400
commit4e2eb7695e9b45cb5d2ae757bdb5c2043d78be78 (patch)
tree71e02cd04b191b9ce66801b67736cf69d831bd0b /mjit.h
parent7f7e79d80221949f93c7ded7cbd8d26afd3dea1d (diff)
downloadruby-4e2eb7695e9b45cb5d2ae757bdb5c2043d78be78.tar.gz
Yet Another Ruby JIT!
Renaming uJIT to YJIT. AKA s/ujit/yjit/g.
Diffstat (limited to 'mjit.h')
-rw-r--r--mjit.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/mjit.h b/mjit.h
index 48596980b4..3b28f51d1d 100644
--- a/mjit.h
+++ b/mjit.h
@@ -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