From 075b6ac8aeb1217b04e067eeb10bd06897a4359d Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 16 Feb 2024 15:39:44 -0500 Subject: [PATCH] YJIT: Remove unused counters --- yjit.rb | 1 - yjit/src/stats.rs | 24 ------------------------ 2 files changed, 25 deletions(-) diff --git a/yjit.rb b/yjit.rb index 805c8a84a2..f2cd369faf 100644 --- a/yjit.rb +++ b/yjit.rb @@ -362,7 +362,6 @@ module RubyVM::YJIT out.puts "freed_iseq_count: " + format_number(13, stats[:freed_iseq_count]) out.puts "invalidation_count: " + format_number(13, stats[:invalidation_count]) - out.puts "constant_state_bumps: " + format_number(13, stats[:constant_state_bumps]) out.puts "inline_code_size: " + format_number(13, stats[:inline_code_size]) out.puts "outlined_code_size: " + format_number(13, stats[:outlined_code_size]) out.puts "code_region_size: " + format_number(13, stats[:code_region_size]) diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs index 19596e33c6..1472444b8a 100644 --- a/yjit/src/stats.rs +++ b/yjit/src/stats.rs @@ -340,15 +340,10 @@ make_counters! { yjit_insns_count, // Method calls that fallback to dynamic dispatch - send_keywords, send_singleton_class, - send_args_splat_super, - send_block_arg, send_ivar_set_method, send_zsuper_method, send_undef_method, - send_optimized_method, - send_optimized_method_call, send_optimized_method_block_call, send_call_block, send_call_kwarg, @@ -364,9 +359,7 @@ make_counters! { send_cfunc_block_arg, send_cfunc_toomany_args, send_cfunc_tracing, - send_cfunc_kwargs, send_cfunc_splat_with_kw, - send_cfunc_splat_send, send_attrset_kwargs, send_attrset_block_arg, send_iseq_tailcall, @@ -375,24 +368,19 @@ make_counters! { send_iseq_clobbering_block_arg, send_iseq_complex_discard_extras, send_iseq_leaf_builtin_block_arg_block_param, - send_iseq_only_keywords, send_iseq_kw_splat_non_nil, - send_iseq_kwargs_req_and_opt_missing, send_iseq_kwargs_mismatch, send_iseq_has_post, send_iseq_has_no_kw, send_iseq_accepts_no_kwarg, send_iseq_materialized_block, send_iseq_splat_not_array, - send_iseq_splat_with_opt, send_iseq_splat_with_kw, send_iseq_missing_optional_kw, send_iseq_too_many_kwargs, send_not_implemented_method, send_getter_arity, send_getter_block_arg, - send_args_splat_non_iseq, - send_args_splat_ivar, send_args_splat_attrset, send_args_splat_bmethod, send_args_splat_aref, @@ -401,17 +389,13 @@ make_counters! { send_args_splat_cfunc_var_args, send_iseq_splat_arity_error, send_splat_too_long, - send_send_not_imm, send_send_wrong_args, send_send_null_mid, send_send_null_cme, send_send_nested, - send_send_chain_string, send_send_getter, - send_send_builtin, send_iseq_has_rest_and_captured, send_iseq_has_kwrest_and_captured, - send_iseq_has_rest_and_splat, send_iseq_has_rest_and_kw_supplied, send_iseq_has_rest_opt_and_block, send_bmethod_ractor, @@ -469,15 +453,9 @@ make_counters! { leave_se_interrupt, leave_interp_return, - getivar_se_self_not_heap, - getivar_idx_out_of_range, getivar_megamorphic, getivar_not_heap, - setivar_se_self_not_heap, - setivar_idx_out_of_range, - setivar_val_heapobject, - setivar_name_not_mapped, setivar_not_heap, setivar_frozen, setivar_megamorphic, @@ -575,8 +553,6 @@ make_counters! { invalidate_constant_state_bump, invalidate_constant_ic_fill, - constant_state_bumps, - // Currently, it's out of the ordinary (might be impossible) for YJIT to leave gaps in // executable memory, so this should be 0. exec_mem_non_bump_alloc,