MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / discharge2anyreg

Function discharge2anyreg

xrepo/packages/l/lua/port/lua/src/lcode.c:880–885  ·  view source on GitHub ↗

** Ensure expression value is in a register, making 'e' a ** non-relocatable expression. ** (Expression still may have jump lists.) */

Source from the content-addressed store, hash-verified

878** (Expression still may have jump lists.)
879*/
880static void discharge2anyreg (FuncState *fs, expdesc *e) {
881 if (e->k != VNONRELOC) { /* no fixed register yet? */
882 luaK_reserveregs(fs, 1); /* get a register */
883 discharge2reg(fs, e, fs->freereg-1); /* put value there */
884 }
885}
886
887
888static int code_loadbool (FuncState *fs, int A, OpCode op) {

Callers 2

jumponcondFunction · 0.85
codenotFunction · 0.85

Calls 2

luaK_reserveregsFunction · 0.85
discharge2regFunction · 0.85

Tested by

no test coverage detected