YJIT: Count setivar too-complex exits (#8131)
This commit is contained in:
parent
437a4ccbf2
commit
cf0c907bc7
Notes:
git
2023-07-27 23:35:50 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>
@ -2287,6 +2287,7 @@ fn gen_setinstancevariable(
|
|||||||
let new_shape_id = unsafe { rb_shape_id(dest_shape) };
|
let new_shape_id = unsafe { rb_shape_id(dest_shape) };
|
||||||
|
|
||||||
if new_shape_id == OBJ_TOO_COMPLEX_SHAPE_ID {
|
if new_shape_id == OBJ_TOO_COMPLEX_SHAPE_ID {
|
||||||
|
gen_counter_incr(asm, Counter::setivar_too_complex);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -323,6 +323,7 @@ make_counters! {
|
|||||||
setivar_not_heap,
|
setivar_not_heap,
|
||||||
setivar_frozen,
|
setivar_frozen,
|
||||||
setivar_megamorphic,
|
setivar_megamorphic,
|
||||||
|
setivar_too_complex,
|
||||||
|
|
||||||
definedivar_not_heap,
|
definedivar_not_heap,
|
||||||
definedivar_megamorphic,
|
definedivar_megamorphic,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user