mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
ZJIT: Add the ISEQ name to Block asm comments (#14070)
This commit is contained in:
parent
5a7be72c06
commit
543f8dcad3
3 changed files with 30 additions and 22 deletions
|
@ -244,7 +244,11 @@ fn gen_function(cb: &mut CodeBlock, iseq: IseqPtr, function: &Function) -> Optio
|
|||
let reverse_post_order = function.rpo();
|
||||
for &block_id in reverse_post_order.iter() {
|
||||
let block = function.block(block_id);
|
||||
asm_comment!(asm, "Block: {block_id}({})", block.params().map(|param| format!("{param}")).collect::<Vec<_>>().join(", "));
|
||||
asm_comment!(
|
||||
asm, "{block_id}({}): {}",
|
||||
block.params().map(|param| format!("{param}")).collect::<Vec<_>>().join(", "),
|
||||
iseq_get_location(iseq, block.insn_idx),
|
||||
);
|
||||
|
||||
// Write a label to jump to the basic block
|
||||
let label = jit.get_label(&mut asm, block_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue