Skip to content

Commit

Permalink
YJIT: Use general definedivar at the end of chains (#7756)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Apr 24, 2023
1 parent f84d94b commit f492e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yjit/src/codegen.rs
Expand Up @@ -2417,7 +2417,7 @@ fn gen_definedivar(
// Specialize base on compile time values
let comptime_receiver = jit.peek_at_self();

if comptime_receiver.shape_too_complex() {
if comptime_receiver.shape_too_complex() || asm.ctx.get_chain_depth() as i32 >= GET_IVAR_MAX_DEPTH {
// Fall back to calling rb_ivar_defined

// Save the PC and SP because the callee may allocate
Expand Down

0 comments on commit f492e3b

Please sign in to comment.