From ba1acbe961789c099d6116ea2b2164bc09dd5339 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 1 Jul 2014 22:49:25 -0500 Subject: [PATCH] Teach disassembler about TAIL_CALL_JQ --- bytecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bytecode.c b/bytecode.c index b03671b6..fed86f2b 100644 --- a/bytecode.c +++ b/bytecode.c @@ -38,7 +38,7 @@ const struct opcode_description* opcode_describe(opcode op) { int bytecode_operation_length(uint16_t* codeptr) { int length = opcode_describe(*codeptr)->length; - if (*codeptr == CALL_JQ) { + if (*codeptr == CALL_JQ || *codeptr == TAIL_CALL_JQ) { length += codeptr[1] * 2; } return length; @@ -98,7 +98,7 @@ void dump_operation(struct bytecode* bc, uint16_t* codeptr) { printf("%s", op->name); if (op->length > 1) { uint16_t imm = bc->code[pc++]; - if (op->op == CALL_JQ) { + if (op->op == CALL_JQ || op->op == TAIL_CALL_JQ) { for (int i=0; icode[pc++]; uint16_t idx = bc->code[pc++];