| 52 | } |
| 53 | |
| 54 | bool Function::compileInstructionsToVirtualInstructions() |
| 55 | { |
| 56 | // push context onto virtual stack |
| 57 | VM::popVmContext(&instructions[0]); |
| 58 | instructions[0].compileToVirtualInstructions(); |
| 59 | |
| 60 | // compile each instruction to a set of virtual instructions |
| 61 | for (int i = 1; i < instructions.size(); i++) |
| 62 | { |
| 63 | if (!instructions[i].compileToVirtualInstructions()) |
| 64 | // unable to virtualise instruciton, likely no support implemented |
| 65 | return 0; |
| 66 | } |
| 67 | |
| 68 | return 1; |
| 69 | } |
| 70 | |
| 71 | void Function::resolveBranchInstructions(DWORD bytecodeRva) |
| 72 | { |
no test coverage detected