Browse Source

fix call_finally dump

cache-refactoring
Aleksey Demakov 16 years ago
parent
commit
332360a265
  1. 4
      ChangeLog
  2. 7
      jit/jit-dump.c

4
ChangeLog

@ -1,3 +1,7 @@
2009-04-21 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-dump.c (jit_dump_insn): fix "call_finally" dump.
2009-04-16 Michele Tartara <mikyt@users.sourceforge.net>
* jit/jit-rules-arm.c: ARM backend fixes.

7
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++)

Loading…
Cancel
Save