** Return the previous instruction of the current code. If there ** may be a jump target between the current instruction and the ** previous one, return an invalid instruction (to avoid wrong ** optimizations). */
| 113 | ** optimizations). |
| 114 | */ |
| 115 | static Instruction *previousinstruction (FuncState *fs) { |
| 116 | static const Instruction invalidinstruction = ~(Instruction)0; |
| 117 | if (fs->pc > fs->lasttarget) |
| 118 | return &fs->f->code[fs->pc - 1]; /* previous instruction */ |
| 119 | else |
| 120 | return cast(Instruction*, &invalidinstruction); |
| 121 | } |
| 122 | |
| 123 | |
| 124 | /* |
no outgoing calls
no test coverage detected