** Gets the destination address of a jump instruction. Used to traverse ** a list of jumps. */
| 95 | ** a list of jumps. |
| 96 | */ |
| 97 | static int getjump (FuncState *fs, int pc) { |
| 98 | int offset = GETARG_sBx(fs->f->code[pc]); |
| 99 | if (offset == NO_JUMP) /* point to itself represents end of list */ |
| 100 | return NO_JUMP; /* end of list */ |
| 101 | else |
| 102 | return (pc+1)+offset; /* turn offset into absolute position */ |
| 103 | } |
| 104 | |
| 105 | |
| 106 | /* |
no outgoing calls
no test coverage detected