** Emit code for binary expressions that "produce values" over ** two registers. */
| 1390 | ** two registers. |
| 1391 | */ |
| 1392 | static void codebinexpval (FuncState *fs, OpCode op, |
| 1393 | expdesc *e1, expdesc *e2, int line) { |
| 1394 | int v2 = luaK_exp2anyreg(fs, e2); /* both operands are in registers */ |
| 1395 | lua_assert(OP_ADD <= op && op <= OP_SHR); |
| 1396 | finishbinexpval(fs, e1, e2, op, v2, 0, line, OP_MMBIN, |
| 1397 | cast(TMS, (op - OP_ADD) + TM_ADD)); |
| 1398 | } |
| 1399 | |
| 1400 | |
| 1401 | /* |
no test coverage detected