mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
dev backend: treat box like a machine-sized integer when storing to register
This commit is contained in:
parent
8770668688
commit
8ba3fd082d
2 changed files with 15 additions and 10 deletions
|
@ -1236,8 +1236,8 @@ impl<
|
|||
let reg = self.load_to_float_reg(buf, &symbol);
|
||||
ASM::mov_base32_freg64(buf, base_offset, reg);
|
||||
}
|
||||
_ => {
|
||||
if let LayoutRepr::LambdaSet(lambda_set) = layout_interner.get(layout).repr {
|
||||
_ => match layout_interner.get(layout).repr {
|
||||
LayoutRepr::LambdaSet(lambda_set) => {
|
||||
self.jump_argument_stack_storage(
|
||||
layout_interner,
|
||||
buf,
|
||||
|
@ -1245,13 +1245,18 @@ impl<
|
|||
lambda_set.runtime_representation(),
|
||||
base_offset,
|
||||
);
|
||||
} else {
|
||||
}
|
||||
LayoutRepr::Boxed(_) => {
|
||||
let reg = self.load_to_general_reg(buf, &symbol);
|
||||
ASM::mov_base32_reg64(buf, base_offset, reg);
|
||||
}
|
||||
_ => {
|
||||
internal_error!(
|
||||
r"cannot load non-primitive layout ({:?}) to primitive stack location",
|
||||
layout
|
||||
layout_interner.dbg(layout)
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue