MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaK_getlabel

Function luaK_getlabel

Source/Misc/lua/src/lua.c:3763–3766  ·  view source on GitHub ↗

** returns current `pc' and marks it as a jump target (to avoid wrong ** optimizations with consecutive instructions not in the same basic block). */

Source from the content-addressed store, hash-verified

3761** optimizations with consecutive instructions not in the same basic block).
3762*/
3763int luaK_getlabel (FuncState *fs) {
3764fs->lasttarget = fs->pc;
3765return fs->pc;
3766}
3767
3768
3769static int getjump (FuncState *fs, int pc) {

Callers 5

luaK_patchtohereFunction · 0.85
code_labelFunction · 0.85
exp2regFunction · 0.85
whilestatFunction · 0.85
repeatstatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected