mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
wasm: code gen for higher order wrapper function
This commit is contained in:
parent
51789f38c2
commit
5db3ae0227
5 changed files with 124 additions and 174 deletions
|
@ -174,12 +174,8 @@ pub fn build_module_without_wrapper<'a>(
|
|||
use ProcSource::*;
|
||||
match source {
|
||||
Roc => { /* already generated */ }
|
||||
Helper => {
|
||||
if let Some(proc) = helper_iter.next() {
|
||||
backend.build_proc(proc);
|
||||
}
|
||||
}
|
||||
HigherOrderWrapper(inner_idx) => backend.build_zigcc_wrapper(idx, *inner_idx),
|
||||
Helper => backend.build_proc(helper_iter.next().unwrap()),
|
||||
HigherOrderWrapper(inner_idx) => backend.build_higher_order_wrapper(idx, *inner_idx),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue