MCPcopy Create free account
hub / github.com/F-Stack/f-stack / jumponcond

Function jumponcond

freebsd/contrib/openzfs/module/lua/lcode.c:604–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602
603
604static int jumponcond (FuncState *fs, expdesc *e, int cond) {
605 if (e->k == VRELOCABLE) {
606 Instruction ie = getcode(fs, e);
607 if (GET_OPCODE(ie) == OP_NOT) {
608 fs->pc--; /* remove previous OP_NOT */
609 return condjump(fs, OP_TEST, GETARG_B(ie), 0, !cond);
610 }
611 /* else go through */
612 }
613 discharge2anyreg(fs, e);
614 freeexp(fs, e);
615 return condjump(fs, OP_TESTSET, NO_REG, e->u.info, cond);
616}
617
618
619void luaK_goiftrue (FuncState *fs, expdesc *e) {

Callers 2

luaK_goiftrueFunction · 0.70
luaK_goiffalseFunction · 0.70

Calls 3

condjumpFunction · 0.70
discharge2anyregFunction · 0.70
freeexpFunction · 0.70

Tested by

no test coverage detected