ruby-changes:68935
From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:14:48 +0900 (JST)
Subject: [ruby-changes:68935] fe784d1449 (master): Track interpreter return as an exit reason for leave instr
https://git.ruby-lang.org/ruby.git/commit/?id=fe784d1449 From fe784d1449ac6a9c2280ce1b29b19fa86d108fe9 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...> Date: Mon, 29 Mar 2021 16:17:14 -0400 Subject: Track interpreter return as an exit reason for leave instr --- yjit_codegen.c | 1 + yjit_iface.h | 1 + 2 files changed, 2 insertions(+) diff --git a/yjit_codegen.c b/yjit_codegen.c index 7bd6eda313..fe6d1d593e 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -1874,6 +1874,7 @@ gen_leave(jitstate_t* jit, ctx_t* ctx) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L1874 // Fall back to the interpreter cb_write_label(cb, FALLBACK_LABEL); cb_link_labels(cb); + GEN_COUNTER_INC(cb, leave_interp_return); cb_write_post_call_bytes(cb); return YJIT_END_BLOCK; diff --git a/yjit_iface.h b/yjit_iface.h index d3cb9f680f..a70ca90fc7 100644 --- a/yjit_iface.h +++ b/yjit_iface.h @@ -46,6 +46,7 @@ YJIT_DECLARE_COUNTERS( https://github.com/ruby/ruby/blob/trunk/yjit_iface.h#L46 leave_se_finish_frame, leave_se_interrupt, + leave_interp_return, getivar_se_self_not_heap, getivar_idx_out_of_range, -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/