Remove memory intrinsics

This commit is contained in:
nora 2024-05-13 20:15:11 +02:00
parent 9270f52e6b
commit 1e97275cf2
5 changed files with 15 additions and 19 deletions

View file

@ -9,3 +9,16 @@ function memcpy(_dst: I32, _src: I32, _n: I32) =
"local.get 0",
"memory.copy",
);
function memoryGrow(_size: I32): I32 =
___asm(
__locals(),
"local.get 0",
"memory.grow",
);
function memorySize(): I32 =
___asm(
__locals(),
"memory.size",
);