MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / discharge2anyreg

Function discharge2anyreg

lib/lua/src/lcode.c:881–886  ·  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

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