aboutsummaryrefslogtreecommitdiffstats
path: root/ujit_codegen.c
diff options
context:
space:
mode:
Diffstat (limited to 'ujit_codegen.c')
-rw-r--r--ujit_codegen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ujit_codegen.c b/ujit_codegen.c
index 7c7866f403..010e98ae86 100644
--- a/ujit_codegen.c
+++ b/ujit_codegen.c
@@ -179,6 +179,11 @@ ujit_gen_block(ctx_t* ctx, block_t* block)
break;
}
+#if RUBY_DEBUG
+ mov(cb, REG0, const_ptr_opnd((void *)&rb_ujit_exec_insns_count));
+ add(cb, mem_opnd(64, REG0, 0), imm_opnd(1));
+#endif
+
//fprintf(stderr, "compiling %d: %s\n", insn_idx, insn_name(opcode));
//print_str(cb, insn_name(opcode));