Skip to content

Commit f1422e4

Browse files
committed
YJIT: Different comment when only setting ec->cfp [ci skip]
1 parent fdf7aad commit f1422e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yjit/src/codegen.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5226,12 +5226,13 @@ fn gen_push_frame(
52265226
let ep = asm.sub(sp, SIZEOF_VALUE.into());
52275227
asm.mov(cfp_opnd(RUBY_OFFSET_CFP_EP), ep);
52285228

5229-
asm.comment("switch to new CFP");
52305229
let new_cfp = asm.lea(cfp_opnd(0));
52315230
if set_sp_cfp {
5231+
asm.comment("switch to new CFP");
52325232
asm.mov(CFP, new_cfp);
52335233
asm.store(Opnd::mem(64, EC, RUBY_OFFSET_EC_CFP), CFP);
52345234
} else {
5235+
asm.comment("set ec->cfp");
52355236
asm.store(Opnd::mem(64, EC, RUBY_OFFSET_EC_CFP), new_cfp);
52365237
}
52375238
}

0 commit comments

Comments
 (0)