Skip to content

Commit 5eef3ce

Browse files
authored
YJIT: Correct name of a counter (#8186)
1 parent 86f4415 commit 5eef3ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

yjit/src/codegen.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5660,7 +5660,7 @@ fn gen_send_iseq(
56605660
exit_if_has_kwrest(asm, iseq)?;
56615661
exit_if_splat_and_ruby2_keywords(asm, jit, flags)?;
56625662
exit_if_has_rest_and_captured(asm, iseq_has_rest, captured_opnd)?;
5663-
exit_if_has_rest_and_send(asm, iseq_has_rest, flags)?;
5663+
exit_if_has_rest_and_splat(asm, iseq_has_rest, flags)?;
56645664
exit_if_has_rest_and_supplying_kws(asm, iseq_has_rest, iseq, supplying_kws)?;
56655665
exit_if_supplying_kw_and_has_no_kw(asm, supplying_kws, iseq)?;
56665666
exit_if_supplying_kws_and_accept_no_kwargs(asm, supplying_kws, iseq)?;
@@ -6404,8 +6404,8 @@ fn exit_if_has_rest_and_captured(asm: &mut Assembler, iseq_has_rest: bool, captu
64046404
}
64056405

64066406
#[must_use]
6407-
fn exit_if_has_rest_and_send( asm: &mut Assembler, iseq_has_rest: bool, flags: u32) -> Option<()> {
6408-
exit_if(asm, iseq_has_rest && flags & VM_CALL_ARGS_SPLAT != 0, Counter::send_iseq_has_rest_and_send)
6407+
fn exit_if_has_rest_and_splat( asm: &mut Assembler, iseq_has_rest: bool, flags: u32) -> Option<()> {
6408+
exit_if(asm, iseq_has_rest && flags & VM_CALL_ARGS_SPLAT != 0, Counter::send_iseq_has_rest_and_splat)
64096409
}
64106410

64116411
#[must_use]

yjit/src/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ make_counters! {
268268
send_send_getter,
269269
send_send_builtin,
270270
send_iseq_has_rest_and_captured,
271-
send_iseq_has_rest_and_send,
271+
send_iseq_has_rest_and_splat,
272272
send_iseq_has_rest_and_kw_supplied,
273273
send_iseq_has_rest_opt_and_block,
274274
send_bmethod_ractor,

0 commit comments

Comments
 (0)