** Ensures final expression result is in a valid R/K index ** (that is, it is either in a register or in 'k' with an index ** in the range of R/K indices). ** Returns 1 iff expression is K. */
| 1083 | ** Returns 1 iff expression is K. |
| 1084 | */ |
| 1085 | static int exp2RK (FuncState *fs, expdesc *e) { |
| 1086 | if (luaK_exp2K(fs, e)) |
| 1087 | return 1; |
| 1088 | else { /* not a constant in the right range: put it in a register */ |
| 1089 | luaK_exp2anyreg(fs, e); |
| 1090 | return 0; |
| 1091 | } |
| 1092 | } |
| 1093 | |
| 1094 | |
| 1095 | static void codeABRK (FuncState *fs, OpCode o, int A, int B, |
no test coverage detected