Load as a stack pointer

This commit is contained in:
Ayaz Hafiz 2023-07-12 13:25:27 -05:00
parent fde75d5432
commit 8d9c6d09b9
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
7 changed files with 32 additions and 27 deletions

View file

@ -2624,20 +2624,8 @@ impl<'a> LayoutRepr<'a> {
pub const F64: Self = LayoutRepr::Builtin(Builtin::Float(FloatWidth::F64));
pub const DEC: Self = LayoutRepr::Builtin(Builtin::Decimal);
pub const STR: Self = LayoutRepr::Builtin(Builtin::Str);
<<<<<<< HEAD
pub const OPAQUE_PTR: Self = LayoutRepr::Ptr(Layout::VOID);
pub const ERASED: Self = Self::struct_(&[
// .value
Layout::OPAQUE_PTR,
// .callee
Layout::OPAQUE_PTR,
// .refcounter
Layout::OPAQUE_PTR,
]);
=======
pub const OPAQUE_PTR: Self = LayoutRepr::Boxed(Layout::VOID);
pub const ERASED: Self = LayoutRepr::Erased(Erased);
>>>>>>> 0ff7ccbb9 (Add Layout::Erased)
pub const fn struct_(field_layouts: &'a [InLayout<'a>]) -> Self {
Self::Struct(field_layouts)
@ -2868,6 +2856,8 @@ impl<'a> LayoutRepr<'a> {
Builtin(List(_)) | Builtin(Str) => true,
Erased(_) => true,
_ => false,
}
}