diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2023-09-06 15:32:36 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2023-09-06 15:32:36 -0400 |
commit | f1422e4cecdbff12148b4b94e1f00646251f2dae (patch) | |
tree | 256d223c0262d7655faaedb30aeba679cd429321 /yjit | |
parent | fdf7aad902ccc9e2f32e4b6b3e21fb68a8788d16 (diff) |
YJIT: Different comment when only setting ec->cfp [ci skip]
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/codegen.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index f36d52a6e3..92dd239c8b 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); } } |