mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
preparations for specializing closures
This commit is contained in:
parent
48d13a7b12
commit
3408a31453
7 changed files with 113 additions and 21 deletions
|
@ -111,8 +111,9 @@ pub fn basic_type_from_layout<'ctx>(
|
|||
basic_type_from_function_layout(arena, context, args, None, ret_layout, ptr_bytes)
|
||||
}
|
||||
Closure(args, closure_layout, ret_layout) => {
|
||||
let closure_data_layout = closure_layout.as_block_of_memory_layout();
|
||||
let closure_data =
|
||||
basic_type_from_layout(arena, context, &closure_layout.as_layout(), ptr_bytes);
|
||||
basic_type_from_layout(arena, context, &closure_data_layout, ptr_bytes);
|
||||
|
||||
let function_pointer = basic_type_from_function_layout(
|
||||
arena,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue