MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / discharge2anyreg

Function discharge2anyreg

third-party/lua-5.5.0/src/lcode.c:937–942  ·  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

935** (Expression still may have jump lists.)
936*/
937static void discharge2anyreg (FuncState *fs, expdesc *e) {
938 if (e->k != VNONRELOC) { /* no fixed register yet? */
939 luaK_reserveregs(fs, 1); /* get a register */
940 discharge2reg(fs, e, fs->freereg-1); /* put value there */
941 }
942}
943
944
945static int code_loadbool (FuncState *fs, int A, OpCode op) {

Callers 2

jumponcondFunction · 0.70
codenotFunction · 0.70

Calls 2

luaK_reserveregsFunction · 0.70
discharge2regFunction · 0.70

Tested by

no test coverage detected