From 1587494b0b5f64a9976dcf0bd94dfe98123c2c27 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 5 Apr 2023 13:19:31 -0700 Subject: YJIT: Add codegen for Integer methods (#7665) * YJIT: Add codegen for Integer methods * YJIT: Update dependencies * YJIT: Fix Integer#[] for argc=2 --- yjit.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'yjit.c') 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) -- cgit v1.2.1