| 1685 | } |
| 1686 | |
| 1687 | void asCByteCode::CallPtr(asEBCInstr instr, int funcPtrVar, int pop) |
| 1688 | { |
| 1689 | if( AddInstruction() < 0 ) |
| 1690 | return; |
| 1691 | |
| 1692 | asASSERT(asBCInfo[instr].type == asBCTYPE_rW_ARG); |
| 1693 | |
| 1694 | last->op = instr; |
| 1695 | last->size = asBCTypeSize[asBCInfo[instr].type]; |
| 1696 | last->stackInc = -pop; |
| 1697 | last->wArg[0] = (short)funcPtrVar; |
| 1698 | |
| 1699 | // Add a JitEntry instruction after function calls so that JIT's can resume execution |
| 1700 | InstrPTR(asBC_JitEntry, 0); |
| 1701 | } |
| 1702 | |
| 1703 | void asCByteCode::Alloc(asEBCInstr instr, void *objID, int funcID, int pop) |
| 1704 | { |