mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Load as a stack pointer
This commit is contained in:
parent
fde75d5432
commit
8d9c6d09b9
7 changed files with 32 additions and 27 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue