** Code arithmetic operators ('+', '-', ...). If second operand is a ** constant in the proper range, use variant opcodes with K operands. */
| 1582 | ** constant in the proper range, use variant opcodes with K operands. |
| 1583 | */ |
| 1584 | static void codearith (FuncState *fs, BinOpr opr, |
| 1585 | expdesc *e1, expdesc *e2, int flip, int line) { |
| 1586 | if (tonumeral(e2, NULL) && luaK_exp2K(fs, e2)) /* K operand? */ |
| 1587 | codebinK(fs, opr, e1, e2, flip, line); |
| 1588 | else /* 'e2' is neither an immediate nor a K operand */ |
| 1589 | codebinNoK(fs, opr, e1, e2, flip, line); |
| 1590 | } |
| 1591 | |
| 1592 | |
| 1593 | /* |
no test coverage detected