diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-01 23:06:45 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-01 23:09:05 -0700 |
commit | 1b475fcd10b4f6fe6784c016e3cdeff724229b1d (patch) | |
tree | c4b836e3fc641dedb64d836155528f68346f956d /yjit | |
parent | 6c55c3eb7f20b4df685f263c6fd121883b5bf113 (diff) | |
download | ruby-1b475fcd10b4f6fe6784c016e3cdeff724229b1d.tar.gz |
Remove an unneeded function copy
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/bindgen/src/main.rs | 2 | ||||
-rw-r--r-- | yjit/src/codegen.rs | 2 | ||||
-rw-r--r-- | yjit/src/cruby_bindings.inc.rs | 6 |
3 files changed, 3 insertions, 7 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index a2af76a787..627a88fd31 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -136,7 +136,7 @@ fn main() { .allowlist_function("rb_ary_resurrect") .allowlist_function("rb_ary_clear") .allowlist_function("rb_ary_dup") - .allowlist_function("rb_yjit_rb_ary_unshift_m") + .allowlist_function("rb_ary_unshift_m") .allowlist_function("rb_yjit_rb_ary_subseq_length") // From internal/array.h diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index b18c855b7a..750ac9e5f5 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -5821,7 +5821,7 @@ fn gen_send_iseq( asm.comment("prepend stack values to rest array"); let array = asm.ccall( - rb_yjit_rb_ary_unshift_m as *const u8, + rb_ary_unshift_m as *const u8, vec![Opnd::UImm(diff as u64), values_ptr, array], ); ctx.stack_pop(diff as usize); diff --git a/yjit/src/cruby_bindings.inc.rs b/yjit/src/cruby_bindings.inc.rs index 83077f8f1b..3e05388308 100644 --- a/yjit/src/cruby_bindings.inc.rs +++ b/yjit/src/cruby_bindings.inc.rs @@ -1296,11 +1296,7 @@ extern "C" { pub fn rb_yarv_str_eql_internal(str1: VALUE, str2: VALUE) -> VALUE; pub fn rb_str_neq_internal(str1: VALUE, str2: VALUE) -> VALUE; pub fn rb_yarv_ary_entry_internal(ary: VALUE, offset: ::std::os::raw::c_long) -> VALUE; - pub fn rb_yjit_rb_ary_unshift_m( - argc: ::std::os::raw::c_int, - argv: *mut VALUE, - ary: VALUE, - ) -> VALUE; + pub fn rb_ary_unshift_m(argc: ::std::os::raw::c_int, argv: *mut VALUE, ary: VALUE) -> VALUE; pub fn rb_yjit_rb_ary_subseq_length(ary: VALUE, beg: ::std::os::raw::c_long) -> VALUE; pub fn rb_yarv_fix_mod_fix(recv: VALUE, obj: VALUE) -> VALUE; pub fn rb_yjit_dump_iseq_loc(iseq: *const rb_iseq_t, insn_idx: u32); |