OP_RET's operand is no longer used
This commit is contained in:
parent
18df88d457
commit
1c538a13f1
|
@ -679,7 +679,7 @@ codegen_context_destroy(pic_state *pic, codegen_context *cxt)
|
|||
cxt->clen++; \
|
||||
} while (0) \
|
||||
|
||||
#define emit_ret(pic, cxt, tailpos) if (tailpos) emit_i(pic, cxt, OP_RET, 1)
|
||||
#define emit_ret(pic, cxt, tailpos) if (tailpos) emit_n(pic, cxt, OP_RET)
|
||||
|
||||
static void
|
||||
create_activation(pic_state *pic, codegen_context *cxt)
|
||||
|
|
|
@ -149,7 +149,7 @@ pic_dump_code(pic_code c)
|
|||
printf("OP_TAILCALL\t%d\n", c.u.i);
|
||||
break;
|
||||
case OP_RET:
|
||||
printf("OP_RET\t%d\n", c.u.i);
|
||||
puts("OP_RET");
|
||||
break;
|
||||
case OP_LAMBDA:
|
||||
printf("OP_LAMBDA\t%d\n", c.u.i);
|
||||
|
|
|
@ -809,7 +809,7 @@ pic_apply(pic_state *pic, struct pic_proc *proc, pic_value args)
|
|||
vm_tear_off(pic->ci);
|
||||
}
|
||||
|
||||
pic->ci->retc = c.u.i;
|
||||
assert(pic->ci->retc == 1);
|
||||
|
||||
L_RET:
|
||||
retc = pic->ci->retc;
|
||||
|
|
Loading…
Reference in New Issue