MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / codebinexpval

Function codebinexpval

extlibs/lua/src/lcode.c:1374–1380  ·  view source on GitHub ↗

** Emit code for binary expressions that "produce values" over ** two registers. */

Source from the content-addressed store, hash-verified

1372** two registers.
1373*/
1374static void codebinexpval (FuncState *fs, OpCode op,
1375 expdesc *e1, expdesc *e2, int line) {
1376 int v2 = luaK_exp2anyreg(fs, e2); /* both operands are in registers */
1377 lua_assert(OP_ADD <= op && op <= OP_SHR);
1378 finishbinexpval(fs, e1, e2, op, v2, 0, line, OP_MMBIN,
1379 cast(TMS, (op - OP_ADD) + TM_ADD));
1380}
1381
1382
1383/*

Callers 3

codearithFunction · 0.85
codebitwiseFunction · 0.85
luaK_posfixFunction · 0.85

Calls 2

luaK_exp2anyregFunction · 0.85
finishbinexpvalFunction · 0.85

Tested by

no test coverage detected