MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaK_exp2anyreg

Function luaK_exp2anyreg

src/Chain/libraries/glua/lcode.cpp:528–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526
527
528int luaK_exp2anyreg(FuncState *fs, expdesc *e) {
529 luaK_dischargevars(fs, e);
530 if (e->k == VNONRELOC) {
531 if (!hasjumps(e)) return e->u.info; /* exp is already in a register */
532 if (e->u.info >= fs->nactvar) { /* reg. is not a local? */
533 exp2reg(fs, e, e->u.info); /* put value on it */
534 return e->u.info;
535 }
536 }
537 luaK_exp2nextreg(fs, e); /* default */
538 return e->u.info;
539}
540
541
542void luaK_exp2anyregup(FuncState *fs, expdesc *e) {

Callers 7

luaK_exp2anyregupFunction · 0.85
luaK_exp2valFunction · 0.85
luaK_exp2RKFunction · 0.85
luaK_storevarFunction · 0.85
luaK_selfFunction · 0.85
codeexpvalFunction · 0.85
retstatFunction · 0.85

Calls 3

luaK_dischargevarsFunction · 0.85
exp2regFunction · 0.85
luaK_exp2nextregFunction · 0.85

Tested by

no test coverage detected