From cf0c907bc7f7f435887a50b350a8b489aa7ff7f8 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 27 Jul 2023 16:35:30 -0700 Subject: YJIT: Count setivar too-complex exits (#8131) --- yjit/src/codegen.rs | 1 + yjit/src/stats.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'yjit/src') diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 204726181d..cc2f33ef63 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -2287,6 +2287,7 @@ fn gen_setinstancevariable( let new_shape_id = unsafe { rb_shape_id(dest_shape) }; if new_shape_id == OBJ_TOO_COMPLEX_SHAPE_ID { + gen_counter_incr(asm, Counter::setivar_too_complex); return None; } diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs index b1773df359..13ba19660f 100644 --- a/yjit/src/stats.rs +++ b/yjit/src/stats.rs @@ -323,6 +323,7 @@ make_counters! { setivar_not_heap, setivar_frozen, setivar_megamorphic, + setivar_too_complex, definedivar_not_heap, definedivar_megamorphic, -- cgit v1.2.3