Skip to content

Commit

Permalink
YJIT: Count getivar side exits by receiver flag changes (#6735)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Nov 15, 2022
1 parent 1125274 commit d1fb659
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yjit/src/codegen.rs
Expand Up @@ -2051,14 +2051,15 @@ fn gen_get_ivar(
asm.comment("guard shape, embedded, and T_OBJECT");
let flags_opnd = asm.and(flags_opnd, Opnd::UImm(expected_flags_mask as u64));
asm.cmp(flags_opnd, Opnd::UImm(expected_flags as u64));
let megamorphic_side_exit = counted_exit!(ocb, side_exit, getivar_megamorphic).into();
jit_chain_guard(
JCC_JNE,
jit,
&starting_context,
asm,
ocb,
max_chain_depth,
side_exit,
megamorphic_side_exit,
);

match ivar_index {
Expand Down

0 comments on commit d1fb659

Please sign in to comment.