diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2023-08-09 09:47:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 09:47:42 -0400 |
commit | 5eef3ce21f09401814b9c4a1932e75f2fc962248 (patch) | |
tree | d12f501292657b8019bdfb01a1046e0bb483cd0f /yjit | |
parent | 86f4415fb8e1da61eb9e844c68e41e30393eeac7 (diff) |
YJIT: Correct name of a counter (#8186)
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/codegen.rs | 6 | ||||
-rw-r--r-- | yjit/src/stats.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 39fc3fb569..3c82bf3137 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -5660,7 +5660,7 @@ fn gen_send_iseq( exit_if_has_kwrest(asm, iseq)?; exit_if_splat_and_ruby2_keywords(asm, jit, flags)?; exit_if_has_rest_and_captured(asm, iseq_has_rest, captured_opnd)?; - exit_if_has_rest_and_send(asm, iseq_has_rest, flags)?; + exit_if_has_rest_and_splat(asm, iseq_has_rest, flags)?; exit_if_has_rest_and_supplying_kws(asm, iseq_has_rest, iseq, supplying_kws)?; exit_if_supplying_kw_and_has_no_kw(asm, supplying_kws, iseq)?; 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 } #[must_use] -fn exit_if_has_rest_and_send( asm: &mut Assembler, iseq_has_rest: bool, flags: u32) -> Option<()> { - exit_if(asm, iseq_has_rest && flags & VM_CALL_ARGS_SPLAT != 0, Counter::send_iseq_has_rest_and_send) +fn exit_if_has_rest_and_splat( asm: &mut Assembler, iseq_has_rest: bool, flags: u32) -> Option<()> { + exit_if(asm, iseq_has_rest && flags & VM_CALL_ARGS_SPLAT != 0, Counter::send_iseq_has_rest_and_splat) } #[must_use] diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs index c9cf95daca..0cd4ff2f44 100644 --- a/yjit/src/stats.rs +++ b/yjit/src/stats.rs @@ -268,7 +268,7 @@ make_counters! { send_send_getter, send_send_builtin, send_iseq_has_rest_and_captured, - send_iseq_has_rest_and_send, + send_iseq_has_rest_and_splat, send_iseq_has_rest_and_kw_supplied, send_iseq_has_rest_opt_and_block, send_bmethod_ractor, |