summaryrefslogtreecommitdiff
path: root/yjit/src/codegen.rs
diff options
context:
space:
mode:
Diffstat (limited to 'yjit/src/codegen.rs')
-rw-r--r--yjit/src/codegen.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index 1336fe3c57..7c4c974345 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -622,9 +622,13 @@ pub fn gen_entry_prologue(cb: &mut CodeBlock, iseq: IseqPtr, insn_idx: u32) -> O
cb.align_pos(64);
let code_ptr = cb.get_write_ptr();
- add_comment(cb, "yjit entry");
let mut asm = Assembler::new();
+ if get_option!(dump_disasm) {
+ asm.comment(&format!("YJIT entry: {}", iseq_get_location(iseq)));
+ } else {
+ asm.comment("YJIT entry");
+ }
asm.frame_setup();
@@ -748,6 +752,11 @@ pub fn gen_single_block(
// Create a backend assembler instance
let mut asm = Assembler::new();
+ #[cfg(feature = "disasm")]
+ if get_option!(dump_disasm) {
+ asm.comment(&format!("Block: {} (ISEQ offset: {})", iseq_get_location(blockid.iseq), blockid.idx));
+ }
+
// For each instruction to compile
// NOTE: could rewrite this loop with a std::iter::Iterator
while insn_idx < iseq_size {
@@ -6049,8 +6058,8 @@ impl CodegenGlobals {
half_size
);
- let cb = CodeBlock::new(first_half);
- let ocb = OutlinedCb::wrap(CodeBlock::new(second_half));
+ let cb = CodeBlock::new(first_half, false);
+ let ocb = OutlinedCb::wrap(CodeBlock::new(second_half, true));
(cb, ocb)
};