summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2022-08-10 13:37:49 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-29 08:47:09 -0700
commit8c45b8a989fea4c74d68c464a55aa54e9144994a (patch)
tree0b8560eec11f41ea23e853613439de190ea40991
parent6b9cec78a18ae1788c8c939c705b85bd0a6efc3a (diff)
Update asm comments for gen_send_iseq
-rw-r--r--yjit/src/codegen.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index 83d09362d1..d8998b9a98 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -4514,11 +4514,11 @@ fn gen_send_iseq(
asm.store(Opnd::mem(64, callee_sp, offs), Qnil.into());
}
- asm.comment("push env");
- // Put compile time cme into REG1. It's assumed to be valid because we are notified when
+ // Write the callee CME on the stack. It's assumed to be valid because we are notified when
// any cme we depend on become outdated. See yjit_method_lookup_change().
// Write method entry at sp[-3]
// sp[-3] = me;
+ asm.comment("push cme, block handler, frame type");
asm.store(Opnd::mem(64, callee_sp, SIZEOF_VALUE_I32 * -3), VALUE(cme as usize).into());
// Write block handler at sp[-2]
@@ -4540,7 +4540,7 @@ fn gen_send_iseq(
let frame_type = VM_FRAME_MAGIC_METHOD | VM_ENV_FLAG_LOCAL;
asm.store(Opnd::mem(64, callee_sp, SIZEOF_VALUE_I32 * -1), frame_type.into());
- asm.comment("push callee CFP");
+ asm.comment("push callee control frame");
// Allocate a new CFP (ec->cfp--)
let new_cfp = asm.sub(CFP, (RUBY_SIZEOF_CONTROL_FRAME as u64).into());
asm.mov(CFP, new_cfp);