Ticket #1009: exit_null.patch
File exit_null.patch, 1.4 KB (added by NotFound, 12 years ago) |
---|
-
src/pmc/continuation.pmc
187 187 cc->address = pos; 188 188 cc->runloop_id = INTERP->current_runloop_id; 189 189 190 if (pos && ( *pos == PARROT_OP_get_results_pc))190 if (pos && ((pos <= (cc->seg->base.data + cc->seg->base.size)) &&(*pos == PARROT_OP_get_results_pc))) 191 191 cc->current_results = pos; 192 192 else 193 193 cc->current_results = NULL; -
compilers/imcc/pcc.c
447 447 IMCC_debug(interp, DEBUG_IMC, "add sub ret - %I\n", tmp); 448 448 insert_ins(unit, unit->last_ins, tmp); 449 449 } 450 else if (STREQ(unit->last_ins->opname, "exit")) {451 /* C<exit> builds RetContinuation pointing to next op_code. So insert some */452 Instruction *tmp = INS(interp, unit, "noop", NULL, regs, 0, 0, 0);453 insert_ins(unit, unit->last_ins, tmp);454 }455 450 } 456 451 457 452 /* -
t/compilers/imcc/imcpasm/opt0.t
86 86 _test: 87 87 noop 88 88 exit 0 89 noop90 89 OUT 91 90 92 91 ##############################