MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaK_code

Function luaK_code

freebsd/contrib/openzfs/module/lua/lcode.c:210–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

luaK_codeABCFunction · 0.70
luaK_codeABxFunction · 0.70
codeextraargFunction · 0.70

Calls 1

dischargejpcFunction · 0.70

Tested by

no test coverage detected