MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaK_exp2anyreg

Function luaK_exp2anyreg

lua/lcode.c:429–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427
428
429int luaK_exp2anyreg (FuncState *fs, expdesc *e) {
430 luaK_dischargevars(fs, e);
431 if (e->k == VNONRELOC) {
432 if (!hasjumps(e)) return e->u.s.info; /* exp is already in a register */
433 if (e->u.s.info >= fs->nactvar) { /* reg. is not a local? */
434 exp2reg(fs, e, e->u.s.info); /* put value on it */
435 return e->u.s.info;
436 }
437 }
438 luaK_exp2nextreg(fs, e); /* default */
439 return e->u.s.info;
440}
441
442
443void luaK_exp2val (FuncState *fs, expdesc *e) {

Callers 8

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

Calls 3

luaK_dischargevarsFunction · 0.85
exp2regFunction · 0.85
luaK_exp2nextregFunction · 0.85

Tested by

no test coverage detected