summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-04-05 13:19:31 -0700
committerGitHub <noreply@github.com>2023-04-05 13:19:31 -0700
commit1587494b0b5f64a9976dcf0bd94dfe98123c2c27 (patch)
treecde249ed1d85312a98de6b7e26bb80bdce2e44f8 /yjit.c
parent52e571fa72debcd764765775bd1b76ee87e36d2d (diff)
downloadruby-1587494b0b5f64a9976dcf0bd94dfe98123c2c27.tar.gz
YJIT: Add codegen for Integer methods (#7665)
* YJIT: Add codegen for Integer methods * YJIT: Update dependencies * YJIT: Fix Integer#[] for argc=2
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/yjit.c b/yjit.c
index 9f8c557489..431a774880 100644
--- a/yjit.c
+++ b/yjit.c
@@ -14,6 +14,7 @@
#include "internal/compile.h"
#include "internal/class.h"
#include "internal/fixnum.h"
+#include "internal/numeric.h"
#include "internal/gc.h"
#include "vm_core.h"
#include "vm_callinfo.h"
@@ -855,11 +856,23 @@ rb_yjit_rb_ary_subseq_length(VALUE ary, long beg)
}
VALUE
-rb_yarv_fix_mod_fix(VALUE recv, VALUE obj)
+rb_yjit_fix_div_fix(VALUE recv, VALUE obj)
+{
+ return rb_fix_div_fix(recv, obj);
+}
+
+VALUE
+rb_yjit_fix_mod_fix(VALUE recv, VALUE obj)
{
return rb_fix_mod_fix(recv, obj);
}
+VALUE
+rb_yjit_fix_mul_fix(VALUE recv, VALUE obj)
+{
+ return rb_fix_mul_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)