| 529 | |
| 530 | |
| 531 | static int jumponcond (FuncState *fs, expdesc *e, int cond) { |
| 532 | if (e->k == VRELOCABLE) { |
| 533 | Instruction ie = getcode(fs, e); |
| 534 | if (GET_OPCODE(ie) == OP_NOT) { |
| 535 | fs->pc--; /* remove previous OP_NOT */ |
| 536 | return condjump(fs, OP_TEST, GETARG_B(ie), 0, !cond); |
| 537 | } |
| 538 | /* else go through */ |
| 539 | } |
| 540 | discharge2anyreg(fs, e); |
| 541 | freeexp(fs, e); |
| 542 | return condjump(fs, OP_TESTSET, NO_REG, e->u.s.info, cond); |
| 543 | } |
| 544 | |
| 545 | |
| 546 | void luaK_goiftrue (FuncState *fs, expdesc *e) { |
no test coverage detected