MCPcopy Create free account
hub / github.com/crownengine/crown / patchlistaux

Function patchlistaux

3rdparty/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.70
luaK_patchlistFunction · 0.70
exp2regFunction · 0.70

Calls 3

getjumpFunction · 0.70
patchtestregFunction · 0.70
fixjumpFunction · 0.70

Tested by

no test coverage detected