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

Function discharge2anyreg

third-party/lua-5.4.6/src/lcode.c:882–887  ·  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

880** (Expression still may have jump lists.)
881*/
882static void discharge2anyreg (FuncState *fs, expdesc *e) {
883 if (e->k != VNONRELOC) { /* no fixed register yet? */
884 luaK_reserveregs(fs, 1); /* get a register */
885 discharge2reg(fs, e, fs->freereg-1); /* put value there */
886 }
887}
888
889
890static 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