mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
emit less MultiTagUnion
This commit is contained in:
parent
5734cce250
commit
cc93da006d
5 changed files with 31 additions and 18 deletions
|
@ -200,6 +200,7 @@ pub enum ClosureRepresentation<'a> {
|
|||
tag_name: TagName,
|
||||
tag_id: u8,
|
||||
union_size: u8,
|
||||
union_layout: UnionLayout<'a>,
|
||||
},
|
||||
/// the representation is anything but a union
|
||||
Other(Layout<'a>),
|
||||
|
@ -241,6 +242,7 @@ impl<'a> LambdaSet<'a> {
|
|||
tag_id: index as u8,
|
||||
tag_layout: tags[index],
|
||||
tag_name: TagName::Closure(function_symbol),
|
||||
union_layout: *union,
|
||||
}
|
||||
}
|
||||
UnionLayout::Recursive(_) => todo!("recursive closures"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue