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

Method visit_memory_size

winch/codegen/src/visitor.rs:1772–1775  ·  view source on GitHub ↗
(&mut self, mem: u32)

Source from the content-addressed store, hash-verified

1770 }
1771
1772 fn visit_memory_size(&mut self, mem: u32) -> Self::Output {
1773 let heap = self.env.resolve_heap(MemoryIndex::from_u32(mem));
1774 self.emit_compute_memory_size(&heap)
1775 }
1776
1777 fn visit_memory_grow(&mut self, mem: u32) -> Self::Output {
1778 let at = self.context.stack.ensure_index_at(1)?;

Callers

nothing calls this directly

Calls 2

resolve_heapMethod · 0.80

Tested by

no test coverage detected