From da9c84f859db292ab1127f7ca9b7741fff06557b Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 12 Mar 2023 22:15:58 -0700 Subject: [PATCH] RJIT: Rename a side exit counter --- lib/ruby_vm/rjit/insn_compiler.rb | 10 +++++++++- rjit_c.h | 2 +- rjit_c.rb | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/ruby_vm/rjit/insn_compiler.rb b/lib/ruby_vm/rjit/insn_compiler.rb index 861a6cb129..83a3cf0389 100644 --- a/lib/ruby_vm/rjit/insn_compiler.rb +++ b/lib/ruby_vm/rjit/insn_compiler.rb @@ -3849,8 +3849,16 @@ module RubyVM::RJIT end end + return jit_setup_parameters_complex(jit, ctx, asm, flags, argc, iseq) + end + + # setup_parameters_complex + # @param jit [RubyVM::RJIT::JITState] + # @param ctx [RubyVM::RJIT::Context] + # @param asm [RubyVM::RJIT::Assembler] + def jit_setup_parameters_complex(jit, ctx, asm, flags, argc, iseq) # We don't support setup_parameters_complex - asm.incr_counter(:send_iseq_kw_splat) + asm.incr_counter(:send_iseq_complex) return CantCompile end diff --git a/rjit_c.h b/rjit_c.h index 2f608d0afc..243e7da637 100644 --- a/rjit_c.h +++ b/rjit_c.h @@ -49,7 +49,7 @@ RJIT_RUNTIME_COUNTERS( send_block_not_proxy, send_iseq_kwparam, - send_iseq_kw_splat, + send_iseq_complex, send_cfunc_variadic, send_cfunc_too_many_args, diff --git a/rjit_c.rb b/rjit_c.rb index 549b87c362..aeab210f70 100644 --- a/rjit_c.rb +++ b/rjit_c.rb @@ -1119,7 +1119,7 @@ module RubyVM::RJIT # :nodoc: all send_block_not_nil: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), send_block_not_nil)")], send_block_not_proxy: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), send_block_not_proxy)")], send_iseq_kwparam: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), send_iseq_kwparam)")], - send_iseq_kw_splat: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), send_iseq_kw_splat)")], + send_iseq_complex: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), send_iseq_complex)")], send_cfunc_variadic: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), send_cfunc_variadic)")], send_cfunc_too_many_args: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), send_cfunc_too_many_args)")], send_cfunc_ruby_array_varg: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), send_cfunc_ruby_array_varg)")],