summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorDave Schwantes <dorkrawk@github.com>2022-06-30 09:26:46 -0500
committerGitHub <noreply@github.com>2022-06-30 10:26:46 -0400
commitb6f6fc6e870d00e5151647f3f14eaa16b8fe145b (patch)
tree6fe1d84b950b12bddcb39968db528a6f63c75e56 /yjit.c
parent2366e14976cd875e0b98321eb339d23016268b72 (diff)
downloadruby-b6f6fc6e870d00e5151647f3f14eaa16b8fe145b.tar.gz
YJIT: Refactor gen_opt_mod (#6078)
Refactor gen_opt_mod in YJIT
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/yjit.c b/yjit.c
index a30e3bad94..108a376282 100644
--- a/yjit.c
+++ b/yjit.c
@@ -13,6 +13,7 @@
#include "internal/variable.h"
#include "internal/compile.h"
#include "internal/class.h"
+#include "internal/fixnum.h"
#include "gc.h"
#include "vm_core.h"
#include "vm_callinfo.h"
@@ -714,6 +715,12 @@ rb_yarv_ary_entry_internal(VALUE ary, long offset)
return rb_ary_entry_internal(ary, offset);
}
+VALUE
+rb_yarv_fix_mod_fix(VALUE recv, VALUE obj)
+{
+ return rb_fix_mod_fix(recv, obj);
+}
+
// Print the Ruby source location of some ISEQ for debugging purposes
void
rb_yjit_dump_iseq_loc(const rb_iseq_t *iseq, uint32_t insn_idx)