mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 17:05:03 +01:00
Add I32, mirroring Wasm i32
This commit is contained in:
parent
89dbb50add
commit
50e82066c9
5 changed files with 28 additions and 3 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue