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

Function luaK_exp2anyreg

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

Source from the content-addressed store, hash-verified

496
497
498int luaK_exp2anyreg (FuncState *fs, expdesc *e) {
499 luaK_dischargevars(fs, e);
500 if (e->k == VNONRELOC) {
501 if (!hasjumps(e)) return e->u.info; /* exp is already in a register */
502 if (e->u.info >= fs->nactvar) { /* reg. is not a local? */
503 exp2reg(fs, e, e->u.info); /* put value on it */
504 return e->u.info;
505 }
506 }
507 luaK_exp2nextreg(fs, e); /* default */
508 return e->u.info;
509}
510
511
512void luaK_exp2anyregup (FuncState *fs, expdesc *e) {

Callers 7

retstatFunction · 0.70
luaK_exp2anyregupFunction · 0.70
luaK_exp2valFunction · 0.70
luaK_exp2RKFunction · 0.70
luaK_storevarFunction · 0.70
luaK_selfFunction · 0.70
luaK_prefixFunction · 0.70

Calls 3

luaK_dischargevarsFunction · 0.70
exp2regFunction · 0.70
luaK_exp2nextregFunction · 0.70

Tested by

no test coverage detected