MCPcopy Create free account
hub / github.com/axmolengine/axmol / codebinexpval

Function codebinexpval

3rdparty/lua/plainlua/lcode.c:1425–1434  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1423** two registers.
1424*/
1425static void codebinexpval (FuncState *fs, BinOpr opr,
1426 expdesc *e1, expdesc *e2, int line) {
1427 OpCode op = binopr2op(opr, OPR_ADD, OP_ADD);
1428 int v2 = luaK_exp2anyreg(fs, e2); /* make sure 'e2' is in a register */
1429 /* 'e1' must be already in a register or it is a constant */
1430 lua_assert((VNIL <= e1->k && e1->k <= VKSTR) ||
1431 e1->k == VNONRELOC || e1->k == VRELOC);
1432 lua_assert(OP_ADD <= op && op <= OP_SHR);
1433 finishbinexpval(fs, e1, e2, op, v2, 0, line, OP_MMBIN, binopr2TM(opr));
1434}
1435
1436
1437/*

Callers 2

codebinNoKFunction · 0.85
luaK_posfixFunction · 0.85

Calls 4

binopr2opFunction · 0.85
luaK_exp2anyregFunction · 0.85
finishbinexpvalFunction · 0.85
binopr2TMFunction · 0.85

Tested by

no test coverage detected