pub fn emit_alloc(oom_ptr: u32, oom_len: u32) -> Function
Emit the alloc(size: i32) -> i32 function.
alloc(size: i32) -> i32
Bump allocator: returns the current heap_ptr, then advances it by size. If we exceed memory, call memory.grow.
heap_ptr
size
memory.grow