| 261 | } |
| 262 | |
| 263 | int VMScriptFunction::PCToLine(const VMOP *pc) |
| 264 | { |
| 265 | int PCIndex = int(pc - Code); |
| 266 | if (LineInfoCount == 1) return LineInfo[0].LineNumber; |
| 267 | for (unsigned i = 1; i < LineInfoCount; i++) |
| 268 | { |
| 269 | if (LineInfo[i].InstructionIndex > PCIndex) |
| 270 | { |
| 271 | return LineInfo[i - 1].LineNumber; |
| 272 | } |
| 273 | } |
| 274 | return -1; |
| 275 | } |
| 276 | |
| 277 | static bool CanJit(VMScriptFunction *func) |
| 278 | { |
no outgoing calls
no test coverage detected