YJIT: Count setivar too-complex exits (#8131)

This commit is contained in:
Takashi Kokubun 2023-07-27 16:35:30 -07:00 committed by GitHub
parent 437a4ccbf2
commit cf0c907bc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2023-07-27 23:35:50 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>
2 changed files with 2 additions and 0 deletions

View File

@ -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;
}

View File

@ -323,6 +323,7 @@ make_counters! {
setivar_not_heap,
setivar_frozen,
setivar_megamorphic,
setivar_too_complex,
definedivar_not_heap,
definedivar_megamorphic,