wasm: refactor to prepare for HigherOrder calls

This commit is contained in:
Brian Carroll 2022-03-23 22:25:52 +00:00
parent 19c02aa087
commit 448140d223
4 changed files with 49 additions and 11 deletions

View file

@ -799,11 +799,17 @@ impl<'a> WasmBackend<'a> {
ret_storage,
)
}
CallType::LowLevel { op: lowlevel, .. } => {
self.expr_call_low_level(*lowlevel, arguments, ret_sym, ret_layout, ret_storage)
}
x => todo!("call type {:?}", x),
CallType::HigherOrder(higher_order_lowlevel) => {
// Note: Zig's calling convention bug will require a generated wrapper function!
todo!("higher order calls");
}
CallType::Foreign { .. } => todo!("CallType::Foreign"),
}
}