mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Consistent naming for "elem_layout"
This commit is contained in:
parent
40c742d74d
commit
a44016a56b
2 changed files with 8 additions and 14 deletions
|
@ -1299,7 +1299,7 @@ impl<
|
|||
dst: &Symbol,
|
||||
capacity: Symbol,
|
||||
capacity_layout: InLayout<'a>,
|
||||
element_layout: InLayout<'a>,
|
||||
elem_layout: InLayout<'a>,
|
||||
ret_layout: &InLayout<'a>,
|
||||
) {
|
||||
// List alignment argument (u32).
|
||||
|
@ -1312,7 +1312,7 @@ impl<
|
|||
);
|
||||
|
||||
// Load element_width argument (usize).
|
||||
self.load_layout_stack_size(element_layout, Symbol::DEV_TMP2);
|
||||
self.load_layout_stack_size(elem_layout, Symbol::DEV_TMP2);
|
||||
|
||||
// Setup the return location.
|
||||
let base_offset = self
|
||||
|
|
|
@ -707,14 +707,8 @@ trait Backend<'a> {
|
|||
args.len(),
|
||||
"ListWithCapacity: expected to have exactly one argument"
|
||||
);
|
||||
let element_layout = list_element_layout!(self.interner(), *ret_layout);
|
||||
self.build_list_with_capacity(
|
||||
sym,
|
||||
args[0],
|
||||
arg_layouts[0],
|
||||
element_layout,
|
||||
ret_layout,
|
||||
)
|
||||
let elem_layout = list_element_layout!(self.interner(), *ret_layout);
|
||||
self.build_list_with_capacity(sym, args[0], arg_layouts[0], elem_layout, ret_layout)
|
||||
}
|
||||
LowLevel::ListReserve => {
|
||||
debug_assert_eq!(
|
||||
|
@ -754,8 +748,8 @@ trait Backend<'a> {
|
|||
args.len(),
|
||||
"ListConcat: expected to have exactly two arguments"
|
||||
);
|
||||
let element_layout = list_element_layout!(self.interner(), *ret_layout);
|
||||
self.build_list_concat(sym, args, arg_layouts, element_layout, ret_layout)
|
||||
let elem_layout = list_element_layout!(self.interner(), *ret_layout);
|
||||
self.build_list_concat(sym, args, arg_layouts, elem_layout, ret_layout)
|
||||
}
|
||||
LowLevel::ListPrepend => {
|
||||
debug_assert_eq!(
|
||||
|
@ -1021,7 +1015,7 @@ trait Backend<'a> {
|
|||
dst: &Symbol,
|
||||
capacity: Symbol,
|
||||
capacity_layout: InLayout<'a>,
|
||||
element_layout: InLayout<'a>,
|
||||
elem_layout: InLayout<'a>,
|
||||
ret_layout: &InLayout<'a>,
|
||||
);
|
||||
|
||||
|
@ -1067,7 +1061,7 @@ trait Backend<'a> {
|
|||
dst: &Symbol,
|
||||
args: &'a [Symbol],
|
||||
arg_layouts: &[InLayout<'a>],
|
||||
element_layout: InLayout<'a>,
|
||||
elem_layout: InLayout<'a>,
|
||||
ret_layout: &InLayout<'a>,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue