summaryrefslogtreecommitdiff
path: root/mjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-02-21 00:16:05 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-05 23:28:59 -0800
commit44c4a2d80d72f1261cfe41ca04ac8e9b826793ca (patch)
treeb730cda628fa4d17e0d1eb9588b1e550bd1c1143 /mjit_c.rb
parenta666079404cbd74315743471998d8e35e11f8eef (diff)
downloadruby-44c4a2d80d72f1261cfe41ca04ac8e9b826793ca.tar.gz
Implement splatarray
Diffstat (limited to 'mjit_c.rb')
-rw-r--r--mjit_c.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/mjit_c.rb b/mjit_c.rb
index d8d7d98fde..f169d582a4 100644
--- a/mjit_c.rb
+++ b/mjit_c.rb
@@ -192,6 +192,13 @@ module RubyVM::MJIT # :nodoc: all
Primitive.cexpr! 'SIZET2NUM((size_t)rb_ec_ary_new_from_values)'
end
+ def rb_vm_splat_array
+ Primitive.cstmt! %{
+ extern VALUE rb_vm_splat_array(VALUE flag, VALUE array);
+ return SIZET2NUM((size_t)rb_vm_splat_array);
+ }
+ end
+
#========================================================================================
#
# Old stuff