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

Function luaK_patchclose

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

Source from the content-addressed store, hash-verified

175
176
177LUAI_FUNC void luaK_patchclose (FuncState *fs, int list, int level) {
178 level++; /* argument is +1 to reserve 0 as non-op */
179 while (list != NO_JUMP) {
180 int next = getjump(fs, list);
181 lua_assert(GET_OPCODE(fs->f->code[list]) == OP_JMP &&
182 (GETARG_A(fs->f->code[list]) == 0 ||
183 GETARG_A(fs->f->code[list]) >= level));
184 SETARG_A(fs->f->code[list], level);
185 list = next;
186 }
187}
188
189
190void luaK_patchtohere (FuncState *fs, int list) {

Callers 4

findlabelFunction · 0.85
movegotosoutFunction · 0.85
leaveblockFunction · 0.85
repeatstatFunction · 0.85

Calls 1

getjumpFunction · 0.70

Tested by

no test coverage detected