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

Function luaK_exp2anyreg

Source/Misc/lua/src/lua.c:4091–4102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4089
4090
4091int luaK_exp2anyreg (FuncState *fs, expdesc *e) {
4092luaK_dischargevars(fs, e);
4093if (e->k == VNONRELOC) {
4094if (!hasjumps(e)) return e->u.s.info; /* exp is already in a register */
4095if (e->u.s.info >= fs->nactvar) { /* reg. is not a local? */
4096exp2reg(fs, e, e->u.s.info); /* put value on it */
4097return e->u.s.info;
4098}
4099}
4100luaK_exp2nextreg(fs, e); /* default */
4101return e->u.s.info;
4102}
4103
4104
4105void luaK_exp2val (FuncState *fs, expdesc *e) {

Callers 8

luaK_exp2valFunction · 0.85
luaK_exp2RKFunction · 0.85
luaK_storevarFunction · 0.85
luaK_selfFunction · 0.85
luaK_prefixFunction · 0.85
fieldFunction · 0.85
primaryexpFunction · 0.85
retstatFunction · 0.85

Calls 3

luaK_dischargevarsFunction · 0.85
exp2regFunction · 0.85
luaK_exp2nextregFunction · 0.85

Tested by

no test coverage detected