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
|
@ -53,6 +53,13 @@ impl HelperOp {
|
|||
fn is_dec(&self) -> bool {
|
||||
matches!(self, Self::Dec)
|
||||
}
|
||||
|
||||
pub fn is_indirect(&self) -> bool {
|
||||
matches!(
|
||||
self,
|
||||
Self::IndirectInc | Self::IndirectIncN | Self::IndirectDec
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue