MCPcopy Create free account
hub / github.com/axmolengine/axmol / patchlistaux

Function patchlistaux

3rdparty/lua/plainlua/lcode.c:289–299  ·  view source on GitHub ↗

** Traverse a list of tests, patching their destination address and ** registers: tests producing values jump to 'vtarget' (and put their ** values in 'reg'), other tests jump to 'dtarget'. */

Source from the content-addressed store, hash-verified

287** values in 'reg'), other tests jump to 'dtarget'.
288*/
289static void patchlistaux (FuncState *fs, int list, int vtarget, int reg,
290 int dtarget) {
291 while (list != NO_JUMP) {
292 int next = getjump(fs, list);
293 if (patchtestreg(fs, list, reg))
294 fixjump(fs, list, vtarget);
295 else
296 fixjump(fs, list, dtarget); /* jump to default target */
297 list = next;
298 }
299}
300
301
302/*

Callers 2

luaK_patchlistFunction · 0.85
exp2regFunction · 0.85

Calls 3

getjumpFunction · 0.85
patchtestregFunction · 0.85
fixjumpFunction · 0.85

Tested by

no test coverage detected