From f1422e4cecdbff12148b4b94e1f00646251f2dae Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 6 Sep 2023 15:32:36 -0400 Subject: [PATCH] YJIT: Different comment when only setting ec->cfp [ci skip] --- yjit/src/codegen.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index f36d52a6e33824..92dd239c8b9f66 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -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); } }