Skip to content

Commit

Permalink
YJIT: Different comment when only setting ec->cfp [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
XrXr committed Sep 6, 2023
1 parent fdf7aad commit f1422e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yjit/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5226,12 +5226,13 @@ fn gen_push_frame(
let ep = asm.sub(sp, SIZEOF_VALUE.into());
asm.mov(cfp_opnd(RUBY_OFFSET_CFP_EP), ep);

asm.comment("switch to new CFP");
let new_cfp = asm.lea(cfp_opnd(0));
if set_sp_cfp {
asm.comment("switch to new CFP");
asm.mov(CFP, new_cfp);
asm.store(Opnd::mem(64, EC, RUBY_OFFSET_EC_CFP), CFP);
} else {
asm.comment("set ec->cfp");
asm.store(Opnd::mem(64, EC, RUBY_OFFSET_EC_CFP), new_cfp);
}
}
Expand Down

0 comments on commit f1422e4

Please sign in to comment.