MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / wasm_store

Method wasm_store

winch/codegen/src/isa/aarch64/masm.rs:385–398  ·  view source on GitHub ↗
(&mut self, src: Reg, dst: Self::Address, op_kind: StoreKind)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

OkFunction · 0.85
with_aligned_spMethod · 0.80
to_addressing_modeMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected