(pos, size uint, arg int)
| 137 | func (i instruction) arg(pos, size uint) int { return int(i >> pos & mask1(size, 0)) } |
| 138 | func (i *instruction) setOpCode(op opCode) { i.setArg(posOp, sizeOp, int(op)) } |
| 139 | func (i *instruction) setArg(pos, size uint, arg int) { |
| 140 | *i = *i&mask0(size, pos) | instruction(arg)<<pos&mask1(size, pos) |
| 141 | } |
| 142 | |
| 143 | // Note: the gc optimizer cannot inline through multiple function calls. Manually inline for now. |
| 144 | // func (i instruction) a() int { return i.arg(posA, sizeA) } |