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