wasm: Implement `@wasmMemorySize()` builtin

This implements the `wasmMemorySize` builtin, in Sema and the Wasm backend.
The Stage2 implementation differs from stage1 in the way that `index` must be a comptime value.
The stage1 variant is incorrect, as the index is part of the instruction encoding, and therefore,
cannot be a runtime value.
ec4c30ae48Luuk de Gram committed on 3/3/2022, 11:33:46 PM· committed by Andrew Kelleyparent0ea51f7
9 files changedLine totals unavailable