| 4328 | |
| 4329 | |
| 4330 | static void codearith (FuncState *fs, OpCode op, expdesc *e1, expdesc *e2) { |
| 4331 | if (constfolding(op, e1, e2)) |
| 4332 | return; |
| 4333 | else { |
| 4334 | int o2 = (op != OP_UNM && op != OP_LEN) ? luaK_exp2RK(fs, e2) : 0; |
| 4335 | int o1 = luaK_exp2RK(fs, e1); |
| 4336 | if (o1 > o2) { |
| 4337 | freeexp(fs, e1); |
| 4338 | freeexp(fs, e2); |
| 4339 | } |
| 4340 | else { |
| 4341 | freeexp(fs, e2); |
| 4342 | freeexp(fs, e1); |
| 4343 | } |
| 4344 | e1->u.s.info = luaK_codeABC(fs, op, 0, o1, o2); |
| 4345 | e1->k = VRELOCABLE; |
| 4346 | } |
| 4347 | } |
| 4348 | |
| 4349 | |
| 4350 | static void codecomp (FuncState *fs, OpCode op, int cond, expdesc *e1, |
no test coverage detected