mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
generate indirect refcount calls in wasm backend
This commit is contained in:
parent
0ad638b17d
commit
927eff0bf4
3 changed files with 52 additions and 23 deletions
|
@ -2102,7 +2102,11 @@ impl<'a, 'r> WasmBackend<'a, 'r> {
|
|||
self.register_helper_proc(spec_sym, spec_layout, ProcSource::Helper);
|
||||
}
|
||||
|
||||
let layout_repr = self.layout_interner.runtime_representation(layout);
|
||||
let layout_repr = if op.is_indirect() {
|
||||
LayoutRepr::Ptr(layout)
|
||||
} else {
|
||||
self.layout_interner.runtime_representation(layout)
|
||||
};
|
||||
let same_layout =
|
||||
|layout| self.layout_interner.runtime_representation(layout) == layout_repr;
|
||||
let proc_index = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue