LoadMapPtr stores a pointer to a map in dst.
(dst Register, fd int)
| 235 | |
| 236 | // LoadMapPtr stores a pointer to a map in dst. |
| 237 | func LoadMapPtr(dst Register, fd int) Instruction { |
| 238 | if fd < 0 { |
| 239 | return Instruction{OpCode: InvalidOpCode} |
| 240 | } |
| 241 | |
| 242 | return Instruction{ |
| 243 | OpCode: LoadImmOp(DWord), |
| 244 | Dst: dst, |
| 245 | Src: PseudoMapFD, |
| 246 | Constant: int64(uint32(fd)), |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | // LoadMapValue stores a pointer to the value at a certain offset of a map. |
| 251 | func LoadMapValue(dst Register, fd int, offset uint32) Instruction { |
searching dependent graphs…