| 216 | } |
| 217 | |
| 218 | static int luaK_code(FuncState *fs, Instruction i) |
| 219 | { |
| 220 | Proto *f = fs->f; |
| 221 | dischargejpc(fs); /* `pc' will change */ |
| 222 | /* put new instruction in code array */ |
| 223 | luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction, |
| 224 | MAX_INT, "opcodes"); |
| 225 | f->code[fs->pc] = i; |
| 226 | /* save corresponding line information */ |
| 227 | luaM_growvector(fs->ls->L, f->lineinfo, fs->pc, f->sizelineinfo, int, |
| 228 | MAX_INT, "opcodes"); |
| 229 | f->lineinfo[fs->pc] = fs->ls->lastline; |
| 230 | return fs->pc++; |
| 231 | } |
| 232 | |
| 233 | int luaK_codeABC(FuncState *fs, OpCode o, int a, int b, int c) |
| 234 | { |
no test coverage detected