** Emit code for unary expressions that "produce values" ** (everything but 'not'). ** Expression to produce final result will be encoded in 'e'. */
| 1389 | ** Expression to produce final result will be encoded in 'e'. |
| 1390 | */ |
| 1391 | static void codeunexpval (FuncState *fs, OpCode op, expdesc *e, int line) { |
| 1392 | int r = luaK_exp2anyreg(fs, e); /* opcodes operate only on registers */ |
| 1393 | freeexp(fs, e); |
| 1394 | e->u.info = luaK_codeABC(fs, op, 0, r, 0); /* generate opcode */ |
| 1395 | e->k = VRELOC; /* all those operations are relocatable */ |
| 1396 | luaK_fixline(fs, line); |
| 1397 | } |
| 1398 | |
| 1399 | |
| 1400 | /* |
no test coverage detected