(&mut self, src: Reg, dst: Self::Address, op_kind: StoreKind)
| 383 | } |
| 384 | |
| 385 | fn wasm_store(&mut self, src: Reg, dst: Self::Address, op_kind: StoreKind) -> Result<()> { |
| 386 | self.with_aligned_sp(|masm| match op_kind { |
| 387 | StoreKind::Operand(size) => dst.to_addressing_mode(masm, size, |masm, mem| { |
| 388 | masm.asm.str(src, mem, size, UNTRUSTED_FLAGS); |
| 389 | Ok(()) |
| 390 | }), |
| 391 | StoreKind::Atomic(_size) => { |
| 392 | Err(format_err!(CodeGenError::unimplemented_masm_instruction())) |
| 393 | } |
| 394 | StoreKind::VectorLane(_selector) => { |
| 395 | Err(format_err!(CodeGenError::unimplemented_masm_instruction())) |
| 396 | } |
| 397 | }) |
| 398 | } |
| 399 | |
| 400 | fn with_scratch<T: ScratchType, R>(&mut self, f: impl FnOnce(&mut Self, Scratch) -> R) -> R { |
| 401 | let r = self |
nothing calls this directly
no test coverage detected