| 638 | |
| 639 | |
| 640 | static int jumponcond(FuncState *fs, expdesc *e, int cond) { |
| 641 | if (e->k == VRELOCABLE) { |
| 642 | Instruction ie = getcode(fs, e); |
| 643 | if (GET_OPCODE(ie) == OP_NOT) { |
| 644 | fs->pc--; /* remove previous OP_NOT */ |
| 645 | return condjump(fs, OP_TEST, GETARG_B(ie), 0, !cond); |
| 646 | } |
| 647 | /* else go through */ |
| 648 | } |
| 649 | discharge2anyreg(fs, e); |
| 650 | freeexp(fs, e); |
| 651 | return condjump(fs, OP_TESTSET, NO_REG, e->u.info, cond); |
| 652 | } |
| 653 | |
| 654 | |
| 655 | void luaK_goiftrue(FuncState *fs, expdesc *e) { |
no test coverage detected