Merge pull request #5312 from roc-lang/dev-refcount-seamless-slice

Dev refcount seamless slice
This commit is contained in:
Brian Carroll 2023-05-14 18:37:23 +01:00 committed by GitHub
commit cfcd2a5289
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 410 additions and 119 deletions

View file

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