Consistent naming for "elem_layout"

This commit is contained in:
Ahmad Sattar 2023-01-29 13:14:19 +01:00
parent 40c742d74d
commit a44016a56b
No known key found for this signature in database
GPG key ID: DE5DDDB4ACC89D39
2 changed files with 8 additions and 14 deletions

View file

@ -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

View file

@ -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>,
);