** 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'. */
| 285 | ** values in 'reg'), other tests jump to 'dtarget'. |
| 286 | */ |
| 287 | static void patchlistaux (FuncState *fs, int list, int vtarget, int reg, |
| 288 | int dtarget) { |
| 289 | while (list != NO_JUMP) { |
| 290 | int next = getjump(fs, list); |
| 291 | if (patchtestreg(fs, list, reg)) |
| 292 | fixjump(fs, list, vtarget); |
| 293 | else |
| 294 | fixjump(fs, list, dtarget); /* jump to default target */ |
| 295 | list = next; |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | |
| 300 | /* |
no test coverage detected