(r, constant int)
| 340 | } |
| 341 | |
| 342 | func (f *function) EncodeConstant(r, constant int) int { |
| 343 | if constant <= maxArgBx { |
| 344 | return f.encodeABx(opLoadConstant, r, constant) |
| 345 | } |
| 346 | pc := f.encodeABx(opLoadConstant, r, 0) |
| 347 | f.encodeExtraArg(constant) |
| 348 | return pc |
| 349 | } |
| 350 | |
| 351 | func (f *function) EncodeString(s string) exprDesc { |
| 352 | return makeExpression(kindConstant, f.stringConstant(s)) |
no test coverage detected