Skip to content

Commit bfe7da0

Browse files
committed
Print block param names in asm comment (Shopify/zjit#93)
1 parent d8a6d43 commit bfe7da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zjit/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn gen_function(cb: &mut CodeBlock, iseq: IseqPtr, function: &Function) -> Optio
136136
let reverse_post_order = function.rpo();
137137
for &block_id in reverse_post_order.iter() {
138138
let block = function.block(block_id);
139-
asm_comment!(asm, "Block: {block_id}");
139+
asm_comment!(asm, "Block: {block_id}({})", block.params().map(|param| format!("{param}")).collect::<Vec<_>>().join(", "));
140140

141141
// Write a label to jump to the basic block
142142
let label = jit.get_label(&mut asm, block_id);

0 commit comments

Comments
 (0)