From 99ff8018bd342a3805689cfe486adb40170db50f Mon Sep 17 00:00:00 2001 From: Hanjoung Lee Date: Tue, 11 Aug 2015 16:31:19 +0900 Subject: [PATCH] Fix show-opcodes not showing last argument JerryScript-DCO-1.0-Signed-off-by: Hanjoung Lee hanjoung.lee@samsung.com --- jerry-core/vm/pretty-printer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/vm/pretty-printer.cpp b/jerry-core/vm/pretty-printer.cpp index 2de449925..585d08192 100644 --- a/jerry-core/vm/pretty-printer.cpp +++ b/jerry-core/vm/pretty-printer.cpp @@ -172,7 +172,7 @@ dump_asm (vm_instr_counter_t oc, vm_instr_t instr) uint8_t opcode_id = instr.op_idx; printf ("%3d: %20s ", oc, opcode_names[opcode_id]); - for (i = 1; i < opcode_sizes[opcode_id]; i++) + for (i = 1; i <= opcode_sizes[opcode_id]; i++) { printf ("%4d ", ((raw_instr *) &instr)->uids[i]); }