MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / luaK_code

Function luaK_code

src/vm/luavm/lua/lcode.c:229–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228
229static 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
244int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) {

Callers 3

luaK_codeABCFunction · 0.85
luaK_codeABxFunction · 0.85
codeextraargFunction · 0.85

Calls 1

dischargejpcFunction · 0.85

Tested by

no test coverage detected