From 332360a265eacb53c7eab4068df2ff5acc0ef434 Mon Sep 17 00:00:00 2001 From: Aleksey Demakov Date: Tue, 21 Apr 2009 14:34:34 +0000 Subject: [PATCH] fix call_finally dump --- ChangeLog | 4 ++++ jit/jit-dump.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 67325fe..60d1af1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-21 Aleksey Demakov + + * jit/jit-dump.c (jit_dump_insn): fix "call_finally" dump. + 2009-04-16 Michele Tartara * jit/jit-rules-arm.c: ARM backend fixes. diff --git a/jit/jit-dump.c b/jit/jit-dump.c index e64b834..c8c4932 100644 --- a/jit/jit-dump.c +++ b/jit/jit-dump.c @@ -383,6 +383,11 @@ void jit_dump_insn(FILE *stream, jit_function_t func, jit_insn_t insn) fprintf(stream, "goto .L%ld", (long)(jit_insn_get_label(insn))); return; } + if(opcode == JIT_OP_CALL_FINALLY || opcode == JIT_OP_CALL_FILTER) + { + fprintf(stream, "%s .L%ld", name, (long)(jit_insn_get_label(insn))); + return; + } fprintf(stream, "if "); } else if((flags & JIT_OPCODE_IS_CALL) != 0) @@ -427,7 +432,7 @@ void jit_dump_insn(FILE *stream, jit_function_t func, jit_insn_t insn) jit_nint num_labels, label; labels = (jit_label_t *)jit_value_get_nint_constant(jit_insn_get_value1(insn)); num_labels = jit_value_get_nint_constant(jit_insn_get_value2(insn)); - fprintf(stream, "jump_table "); + fprintf(stream, "%s ", name); dump_value(stream, func, jit_insn_get_dest(insn), flags & JIT_OPCODE_DEST_MASK); printf(" : {"); for(label = 0; label < num_labels; label++)