зеркало из https://github.com/github/ruby.git
Use a different name for megamorphic setivar exits
We should differentiate between set and get for megamorphic exits. This patch fixes the megamorphic exit name in gen_setinstancevariable so that we can tell the difference between megamorphic get / set sites
This commit is contained in:
Родитель
979dd02e2f
Коммит
6c618cb789
|
@ -2276,7 +2276,7 @@ fn gen_setinstancevariable(
|
|||
|
||||
asm.comment("guard shape");
|
||||
asm.cmp(shape_opnd, Opnd::UImm(expected_shape as u64));
|
||||
let megamorphic_side_exit = counted_exit!(ocb, side_exit, getivar_megamorphic).into();
|
||||
let megamorphic_side_exit = counted_exit!(ocb, side_exit, setivar_megamorphic).into();
|
||||
jit_chain_guard(
|
||||
JCC_JNE,
|
||||
jit,
|
||||
|
|
|
@ -256,6 +256,7 @@ make_counters! {
|
|||
setivar_name_not_mapped,
|
||||
setivar_not_object,
|
||||
setivar_frozen,
|
||||
setivar_megamorphic,
|
||||
|
||||
oaref_argc_not_one,
|
||||
oaref_arg_not_fixnum,
|
||||
|
|
Загрузка…
Ссылка в новой задаче