mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Only compare reprs in gen_dev
This commit is contained in:
parent
4b7f09b175
commit
1b84cbafe3
5 changed files with 103 additions and 76 deletions
|
@ -1159,7 +1159,7 @@ impl<
|
|||
symbol: Symbol,
|
||||
layout: InLayout<'a>,
|
||||
) {
|
||||
match layout {
|
||||
match layout_interner.get(layout).repr {
|
||||
single_register_layouts!() => {
|
||||
let base_offset = self.claim_stack_size(8);
|
||||
self.symbol_storage_map.insert(
|
||||
|
@ -1227,7 +1227,7 @@ impl<
|
|||
layout: InLayout<'a>,
|
||||
base_offset: i32,
|
||||
) {
|
||||
match layout {
|
||||
match layout_interner.get(layout).repr {
|
||||
single_register_integers!() => {
|
||||
let reg = self.load_to_general_reg(buf, &symbol);
|
||||
ASM::mov_base32_reg64(buf, base_offset, reg);
|
||||
|
@ -1534,7 +1534,7 @@ impl<
|
|||
}
|
||||
|
||||
fn is_primitive(layout_interner: &mut STLayoutInterner<'_>, layout: InLayout<'_>) -> bool {
|
||||
match layout {
|
||||
match layout_interner.get(layout).repr {
|
||||
single_register_layouts!() => true,
|
||||
_ => match layout_interner.get(layout).repr {
|
||||
LayoutRepr::Boxed(_) => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue