vbscript: Skip the first (null) instruction in dump_code.
This commit is contained in:
parent
ef6a6b08d4
commit
4ca8447769
|
@ -98,7 +98,8 @@ static void dump_code(compile_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
instr_t *instr;
|
instr_t *instr;
|
||||||
|
|
||||||
for(instr = ctx->code->instrs; instr < ctx->code->instrs+ctx->instr_cnt; instr++) {
|
for(instr = ctx->code->instrs+1; instr < ctx->code->instrs+ctx->instr_cnt; instr++) {
|
||||||
|
assert(instr->op < OP_LAST);
|
||||||
TRACE_(vbscript_disas)("%d:\t%s", (int)(instr-ctx->code->instrs), instr_info[instr->op].op_str);
|
TRACE_(vbscript_disas)("%d:\t%s", (int)(instr-ctx->code->instrs), instr_info[instr->op].op_str);
|
||||||
dump_instr_arg(instr_info[instr->op].arg1_type, &instr->arg1);
|
dump_instr_arg(instr_info[instr->op].arg1_type, &instr->arg1);
|
||||||
dump_instr_arg(instr_info[instr->op].arg2_type, &instr->arg2);
|
dump_instr_arg(instr_info[instr->op].arg2_type, &instr->arg2);
|
||||||
|
|
Loading…
Reference in New Issue