** Emit code for binary expressions that "produce values" over ** two registers. */
| 1372 | ** two registers. |
| 1373 | */ |
| 1374 | static 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 | /* |
no test coverage detected