Add I32, mirroring Wasm i32

This commit is contained in:
nora 2023-07-30 14:53:43 +02:00
parent 89dbb50add
commit 50e82066c9
5 changed files with 28 additions and 3 deletions

View file

@ -524,6 +524,8 @@ function computeAbi(ty: TyFn): FnAbi {
todo("fn abi");
case "int":
return ["i64"];
case "i32":
return ["i32"];
case "bool":
return ["i32"];
case "list":
@ -572,6 +574,8 @@ function wasmTypeForBody(ty: Ty): wasm.ValType[] {
return STRING_TYPES;
case "int":
return ["i64"];
case "i32":
return ["i32"];
case "bool":
return ["i32"];
case "list":