aboutsummaryrefslogtreecommitdiffstats
path: root/yjit.c
diff options
context:
space:
mode:
authorJimmy Miller <jimmy.miller@shopify.com>2023-03-07 17:03:43 -0500
committerGitHub <noreply@github.com>2023-03-07 17:03:43 -0500
commit56df6d5f9d986a7959eb9cac27e21bc2ed505319 (patch)
tree3ce9efc14aa28e2b5e9f050fc8a7037980d78fb1 /yjit.c
parent33edcc112081f96856d52e73253d73c97a5c4a3c (diff)
downloadruby-56df6d5f9d986a7959eb9cac27e21bc2ed505319.tar.gz
YJIT: Handle splat+rest for args pass greater than required (#7468)
For example: ```ruby def my_func(x, y, *rest) p [x, y, rest] end my_func(1, 2, 3, *[4, 5]) ```
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/yjit.c b/yjit.c
index d608ad32fa..f5037e6217 100644
--- a/yjit.c
+++ b/yjit.c
@@ -848,6 +848,9 @@ rb_yarv_ary_entry_internal(VALUE ary, long offset)
}
VALUE
+rb_yjit_rb_ary_unshift_m(int argc, VALUE *argv, VALUE ary);
+
+VALUE
rb_yarv_fix_mod_fix(VALUE recv, VALUE obj)
{
return rb_fix_mod_fix(recv, obj);