From 9f94c48d3f6a3009701256e4626f84d250a84bd5 Mon Sep 17 00:00:00 2001 From: Klaus Treichel Date: Sun, 28 Nov 2010 20:04:32 +0100 Subject: [PATCH] Dump the destination value for the address_of_label opcode. --- ChangeLog | 8 ++++++++ config/jit-opcodes.ops | 2 +- jit/jit-dump.c | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e0eeca9..a1440c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-11-28 Klaus Treichel + + * config/jit-opcodes.ops: Set the destination value type for the + address_of_label opcode. + + * jit/jit-dump.c (jit_dump_insn): Print the destination value for + the address_of_label opcode. + 2010-11-07 Klaus Treichel * jit/jit-cache.h: Fix comment for _jit_cache_get_end_method. diff --git a/config/jit-opcodes.ops b/config/jit-opcodes.ops index d54e628..68a7fd9 100644 --- a/config/jit-opcodes.ops +++ b/config/jit-opcodes.ops @@ -775,7 +775,7 @@ opcodes(JIT_OP_, "jit_opcode_info_t const jit_opcodes[JIT_OP_NUM_OPCODES]") op_def("leave_filter") { op_values(empty, any) } op_def("call_filter") { op_type(branch), op_values(empty, any) } op_def("call_filter_return") { op_values(any) } - op_def("address_of_label") { op_type(address_of_label) } + op_def("address_of_label") { op_type(address_of_label), op_values(ptr) } /* * Data manipulation. */ diff --git a/jit/jit-dump.c b/jit/jit-dump.c index 1147abd..8af455e 100644 --- a/jit/jit-dump.c +++ b/jit/jit-dump.c @@ -422,6 +422,8 @@ void jit_dump_insn(FILE *stream, jit_function_t func, jit_insn_t insn) } else if((flags & JIT_OPCODE_IS_ADDROF_LABEL) != 0) { + dump_value(stream, func, jit_insn_get_dest(insn), flags & JIT_OPCODE_DEST_MASK); + fprintf(stream, " = "); fprintf(stream, "address_of_label .L%ld", (long)(jit_insn_get_label(insn))); return; -- 2.47.3