From b6f6fc6e870d00e5151647f3f14eaa16b8fe145b Mon Sep 17 00:00:00 2001 From: Dave Schwantes Date: Thu, 30 Jun 2022 09:26:46 -0500 Subject: YJIT: Refactor gen_opt_mod (#6078) Refactor gen_opt_mod in YJIT --- yjit.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'yjit.c') 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) -- cgit v1.2.3