diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-02-21 00:16:05 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-05 23:28:59 -0800 |
commit | 44c4a2d80d72f1261cfe41ca04ac8e9b826793ca (patch) | |
tree | b730cda628fa4d17e0d1eb9588b1e550bd1c1143 /mjit_c.rb | |
parent | a666079404cbd74315743471998d8e35e11f8eef (diff) | |
download | ruby-44c4a2d80d72f1261cfe41ca04ac8e9b826793ca.tar.gz |
Implement splatarray
Diffstat (limited to 'mjit_c.rb')
-rw-r--r-- | mjit_c.rb | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |