summaryrefslogtreecommitdiff
path: root/yjit
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2023-04-20 16:31:34 -0400
committerMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2023-04-20 16:31:34 -0400
commit277098bde2353e408ff4195d5cad387f0739b83c (patch)
tree6c39dde18b492fe0ed3f63a6d1467e51c318dfae /yjit
parent64a25977ed93f5c1d95d72359979a0b89dc9ffc0 (diff)
downloadruby-277098bde2353e408ff4195d5cad387f0739b83c.tar.gz
Fix inaccurate comment
Diffstat (limited to 'yjit')
-rw-r--r--yjit/src/codegen.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index a38dc769fa..10544ea902 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -1465,7 +1465,9 @@ fn guard_object_is_not_ruby2_keyword_hash(
asm.write_label(not_ruby2_keyword);
}
-// push enough nils onto the stack to fill out an array
+/// This instruction pops a single value off the stack, converts it to an
+/// arrayif it isn’t already one using the #to_ary method, and then pushes
+/// the values from the array back onto the stack.
fn gen_expandarray(
jit: &mut JITState,
asm: &mut Assembler,