| 227 | |
| 228 | |
| 229 | static int luaK_code (FuncState *fs, Instruction i) { |
| 230 | Proto *f = fs->f; |
| 231 | dischargejpc(fs); /* 'pc' will change */ |
| 232 | /* put new instruction in code array */ |
| 233 | luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction, |
| 234 | MAX_INT, "opcodes"); |
| 235 | f->code[fs->pc] = i; |
| 236 | /* save corresponding line information */ |
| 237 | luaM_growvector(fs->ls->L, f->lineinfo, fs->pc, f->sizelineinfo, int, |
| 238 | MAX_INT, "opcodes"); |
| 239 | f->lineinfo[fs->pc] = fs->ls->lastline; |
| 240 | return fs->pc++; |
| 241 | } |
| 242 | |
| 243 | |
| 244 | int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) { |
no test coverage detected