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

Function luaK_exp2anyreg

other_src/lua/src/lcode.cpp: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

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

Calls 3

luaK_dischargevarsFunction · 0.70
exp2regFunction · 0.70
luaK_exp2nextregFunction · 0.70

Tested by

no test coverage detected