MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaK_exp2anyreg

Function luaK_exp2anyreg

third-party/lua-5.2.4/src/lcode.c:500–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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