MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / patchlistaux

Function patchlistaux

deps/lua/src/lcode.c:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149
150static void patchlistaux (FuncState *fs, int list, int vtarget, int reg,
151 int dtarget) {
152 while (list != NO_JUMP) {
153 int next = getjump(fs, list);
154 if (patchtestreg(fs, list, reg))
155 fixjump(fs, list, vtarget);
156 else
157 fixjump(fs, list, dtarget); /* jump to default target */
158 list = next;
159 }
160}
161
162
163static void dischargejpc (FuncState *fs) {

Callers 3

dischargejpcFunction · 0.85
luaK_patchlistFunction · 0.85
exp2regFunction · 0.85

Calls 3

getjumpFunction · 0.85
patchtestregFunction · 0.85
fixjumpFunction · 0.85

Tested by

no test coverage detected