diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2023-02-10 16:05:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 16:05:16 -0500 |
commit | a7e8eabeed54392588c7f01afe8be2e72d3c526d (patch) | |
tree | 1e25a83a5a33b21234853fc4b0666ea8ba56d9a4 /yjit/src/asm | |
parent | 7ece23bf745306479f5a05d16ec64eb4460af2ba (diff) | |
download | ruby-a7e8eabeed54392588c7f01afe8be2e72d3c526d.tar.gz |
YJIT: add counters for polymorphic send and send with known class (#7288)
Diffstat (limited to 'yjit/src/asm')
-rw-r--r-- | yjit/src/asm/x86_64/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/asm/x86_64/mod.rs b/yjit/src/asm/x86_64/mod.rs index 67bb5d1ffb..0bb1a6381f 100644 --- a/yjit/src/asm/x86_64/mod.rs +++ b/yjit/src/asm/x86_64/mod.rs @@ -700,13 +700,13 @@ pub fn call_ptr(cb: &mut CodeBlock, scratch_opnd: X86Opnd, dst_ptr: *const u8) { // If the offset fits in 32-bit if rel64 >= i32::MIN.into() && rel64 <= i32::MAX.into() { - incr_counter!(x86_call_rel32); + incr_counter!(num_send_x86_rel32); call_rel32(cb, rel64.try_into().unwrap()); return; } // Move the pointer into the scratch register and call - incr_counter!(x86_call_reg); + incr_counter!(num_send_x86_reg); mov(cb, scratch_opnd, const_ptr_opnd(dst_ptr)); call(cb, scratch_opnd); } else { |