MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaK_exp2anyreg

Function luaK_exp2anyreg

deps/lua/src/lcode.c:422–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420
421
422int luaK_exp2anyreg (FuncState *fs, expdesc *e) {
423 luaK_dischargevars(fs, e);
424 if (e->k == VNONRELOC) {
425 if (!hasjumps(e)) return e->u.s.info; /* exp is already in a register */
426 if (e->u.s.info >= fs->nactvar) { /* reg. is not a local? */
427 exp2reg(fs, e, e->u.s.info); /* put value on it */
428 return e->u.s.info;
429 }
430 }
431 luaK_exp2nextreg(fs, e); /* default */
432 return e->u.s.info;
433}
434
435
436void 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