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

Function need_value

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

** check whether list has any jump that do not produce a value ** (or produce an inverted value) */

Source from the content-addressed store, hash-verified

118** (or produce an inverted value)
119*/
120static int need_value (FuncState *fs, int list) {
121 for (; list != NO_JUMP; list = getjump(fs, list)) {
122 Instruction i = *getjumpcontrol(fs, list);
123 if (GET_OPCODE(i) != OP_TESTSET) return 1;
124 }
125 return 0; /* not found */
126}
127
128
129static int patchtestreg (FuncState *fs, int node, int reg) {

Callers 1

exp2regFunction · 0.70

Calls 2

getjumpFunction · 0.70
getjumpcontrolFunction · 0.70

Tested by

no test coverage detected