RJIT: Rename a side exit counter

This commit is contained in:
Takashi Kokubun 2023-03-12 22:15:58 -07:00
Родитель d27b594841
Коммит da9c84f859
3 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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,

Просмотреть файл

@ -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)")],