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