** Code arithmetic operators ('+', '-', ...). If second operand is a ** constant in the proper range, use variant opcodes with K operands. */
| 1500 | ** constant in the proper range, use variant opcodes with K operands. |
| 1501 | */ |
| 1502 | static void codearith (FuncState *fs, BinOpr opr, |
| 1503 | expdesc *e1, expdesc *e2, int flip, int line) { |
| 1504 | if (tonumeral(e2, NULL) && luaK_exp2K(fs, e2)) /* K operand? */ |
| 1505 | codebinK(fs, opr, e1, e2, flip, line); |
| 1506 | else /* 'e2' is neither an immediate nor a K operand */ |
| 1507 | codebinNoK(fs, opr, e1, e2, flip, line); |
| 1508 | } |
| 1509 | |
| 1510 | |
| 1511 | /* |
no test coverage detected