mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Put the capture niche in the lambda name instead of generating new names
This commit is contained in:
parent
1ed2e1a8e9
commit
019ebd93f7
20 changed files with 592 additions and 486 deletions
|
@ -380,7 +380,7 @@ impl<'a> WasmBackend<'a> {
|
|||
println!("\ngenerating procedure {:?}\n", proc.name);
|
||||
}
|
||||
|
||||
self.append_proc_debug_name(proc.name.call_name());
|
||||
self.append_proc_debug_name(proc.name.name());
|
||||
|
||||
self.start_proc(proc);
|
||||
|
||||
|
@ -1125,9 +1125,10 @@ impl<'a> WasmBackend<'a> {
|
|||
let proc_layout = ProcLayout {
|
||||
arguments: arg_layouts,
|
||||
result: **result,
|
||||
captures_niche: func_sym.captures_niche,
|
||||
};
|
||||
self.expr_call_by_name(
|
||||
*func_sym,
|
||||
func_sym.name(),
|
||||
&proc_layout,
|
||||
arguments,
|
||||
ret_sym,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue