Skip to content

Commit 71fecfa

Browse files
authored
ZJIT: Rename things so that they aren't named "not_optimized_optimized" (#15135)
These refer to "OptimizedMethodType" which is a subcategory of "MethodType::Optimized" so name them after the latter to avoid "not_optimized_optimized".
1 parent d9f0b5a commit 71fecfa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

zjit/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ fn gen_incr_send_fallback_counter(asm: &mut Assembler, reason: SendFallbackReaso
18351835
SendWithoutBlockNotOptimizedMethodType(method_type) => {
18361836
gen_incr_counter(asm, send_without_block_fallback_counter_for_method_type(method_type));
18371837
}
1838-
SendWithoutBlockNotOptimizedOptimizedMethodType(method_type) => {
1838+
SendWithoutBlockNotOptimizedMethodTypeOptimized(method_type) => {
18391839
gen_incr_counter(asm, send_without_block_fallback_counter_for_optimized_method_type(method_type));
18401840
}
18411841
SendNotOptimizedMethodType(method_type) => {

zjit/src/hir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ pub enum SendFallbackReason {
592592
SendWithoutBlockCfuncNotVariadic,
593593
SendWithoutBlockCfuncArrayVariadic,
594594
SendWithoutBlockNotOptimizedMethodType(MethodType),
595-
SendWithoutBlockNotOptimizedOptimizedMethodType(OptimizedMethodType),
595+
SendWithoutBlockNotOptimizedMethodTypeOptimized(OptimizedMethodType),
596596
SendWithoutBlockDirectTooManyArgs,
597597
SendPolymorphic,
598598
SendMegamorphic,
@@ -2534,7 +2534,7 @@ impl Function {
25342534
};
25352535
self.make_equal_to(insn_id, replacement);
25362536
} else {
2537-
self.set_dynamic_send_reason(insn_id, SendWithoutBlockNotOptimizedOptimizedMethodType(OptimizedMethodType::from(opt_type)));
2537+
self.set_dynamic_send_reason(insn_id, SendWithoutBlockNotOptimizedMethodTypeOptimized(OptimizedMethodType::from(opt_type)));
25382538
self.push_insn_id(block, insn_id); continue;
25392539
}
25402540
} else {

zjit/src/stats.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ make_counters! {
178178
send_fallback_send_without_block_cfunc_not_variadic,
179179
send_fallback_send_without_block_cfunc_array_variadic,
180180
send_fallback_send_without_block_not_optimized_method_type,
181-
send_fallback_send_without_block_not_optimized_optimized_method_type,
181+
send_fallback_send_without_block_not_optimized_method_type_optimized,
182182
send_fallback_send_without_block_direct_too_many_args,
183183
send_fallback_send_polymorphic,
184184
send_fallback_send_megamorphic,
@@ -471,8 +471,8 @@ pub fn send_fallback_counter(reason: crate::hir::SendFallbackReason) -> Counter
471471
SendWithoutBlockCfuncNotVariadic => send_fallback_send_without_block_cfunc_not_variadic,
472472
SendWithoutBlockCfuncArrayVariadic => send_fallback_send_without_block_cfunc_array_variadic,
473473
SendWithoutBlockNotOptimizedMethodType(_) => send_fallback_send_without_block_not_optimized_method_type,
474-
SendWithoutBlockNotOptimizedOptimizedMethodType(_)
475-
=> send_fallback_send_without_block_not_optimized_optimized_method_type,
474+
SendWithoutBlockNotOptimizedMethodTypeOptimized(_)
475+
=> send_fallback_send_without_block_not_optimized_method_type_optimized,
476476
SendWithoutBlockDirectTooManyArgs => send_fallback_send_without_block_direct_too_many_args,
477477
SendPolymorphic => send_fallback_send_polymorphic,
478478
SendMegamorphic => send_fallback_send_megamorphic,

0 commit comments

Comments
 (0)