mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
wasm: refactor to prepare for HigherOrder calls
This commit is contained in:
parent
19c02aa087
commit
448140d223
4 changed files with 49 additions and 11 deletions
|
@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue