mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
remove Boxed layout
This commit is contained in:
parent
d64930c17f
commit
6d2d65bb1e
24 changed files with 52 additions and 1377 deletions
|
@ -4518,8 +4518,7 @@ macro_rules! single_register_layouts {
|
|||
#[macro_export]
|
||||
macro_rules! pointer_layouts {
|
||||
() => {
|
||||
LayoutRepr::Boxed(_)
|
||||
| LayoutRepr::Ptr(_)
|
||||
LayoutRepr::Ptr(_)
|
||||
| LayoutRepr::RecursivePointer(_)
|
||||
| LayoutRepr::Union(
|
||||
UnionLayout::Recursive(_)
|
||||
|
|
|
@ -388,7 +388,7 @@ trait Backend<'a> {
|
|||
fn increment_fn_pointer(&mut self, layout: InLayout<'a>) -> Symbol {
|
||||
let box_layout = self
|
||||
.interner_mut()
|
||||
.insert_direct_no_semantic(LayoutRepr::Boxed(layout));
|
||||
.insert_direct_no_semantic(LayoutRepr::Ptr(layout));
|
||||
|
||||
let element_increment = self.debug_symbol("element_increment");
|
||||
let element_increment_symbol = self.build_indirect_inc(layout);
|
||||
|
@ -408,7 +408,7 @@ trait Backend<'a> {
|
|||
fn decrement_fn_pointer(&mut self, layout: InLayout<'a>) -> Symbol {
|
||||
let box_layout = self
|
||||
.interner_mut()
|
||||
.insert_direct_no_semantic(LayoutRepr::Boxed(layout));
|
||||
.insert_direct_no_semantic(LayoutRepr::Ptr(layout));
|
||||
|
||||
let element_decrement = self.debug_symbol("element_decrement");
|
||||
let element_decrement_symbol = self.build_indirect_dec(layout);
|
||||
|
@ -1586,7 +1586,6 @@ trait Backend<'a> {
|
|||
LowLevel::PtrStore => {
|
||||
let element_layout = match self.interner().get_repr(arg_layouts[0]) {
|
||||
LayoutRepr::Ptr(inner) => inner,
|
||||
LayoutRepr::Boxed(inner) => inner,
|
||||
_ => unreachable!("cannot write to {:?}", self.interner().dbg(*ret_layout)),
|
||||
};
|
||||
|
||||
|
|
|
@ -464,7 +464,7 @@ fn build_exposed_generic_proc<'a, B: Backend<'a>>(backend: &mut B, proc: &Proc<'
|
|||
|
||||
let box_layout = backend
|
||||
.interner_mut()
|
||||
.insert_direct_no_semantic(roc_mono::layout::LayoutRepr::Boxed(proc.ret_layout));
|
||||
.insert_direct_no_semantic(roc_mono::layout::LayoutRepr::Ptr(proc.ret_layout));
|
||||
|
||||
let mut args = bumpalo::collections::Vec::new_in(arena);
|
||||
args.extend(proc.args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue