MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / discharge2anyreg

Function discharge2anyreg

3rd/lua-5.4.3/src/lcode.c:862–867  ·  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

860** (Expression still may have jump lists.)
861*/
862static void discharge2anyreg (FuncState *fs, expdesc *e) {
863 if (e->k != VNONRELOC) { /* no fixed register yet? */
864 luaK_reserveregs(fs, 1); /* get a register */
865 discharge2reg(fs, e, fs->freereg-1); /* put value there */
866 }
867}
868
869
870static 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