** Emit code for unary expressions that "produce values" ** (everything but 'not'). ** Expression to produce final result will be encoded in 'e'. */
| 1471 | ** Expression to produce final result will be encoded in 'e'. |
| 1472 | */ |
| 1473 | static void codeunexpval (FuncState *fs, OpCode op, expdesc *e, int line) { |
| 1474 | int r = luaK_exp2anyreg(fs, e); /* opcodes operate only on registers */ |
| 1475 | freeexp(fs, e); |
| 1476 | e->u.info = luaK_codeABC(fs, op, 0, r, 0); /* generate opcode */ |
| 1477 | e->k = VRELOC; /* all those operations are relocatable */ |
| 1478 | luaK_fixline(fs, line); |
| 1479 | } |
| 1480 | |
| 1481 | |
| 1482 | /* |
no test coverage detected