generate indirect refcount calls in wasm backend

This commit is contained in:
Brendan Hansknecht 2024-07-10 17:19:51 -07:00
parent 0ad638b17d
commit 927eff0bf4
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
3 changed files with 52 additions and 23 deletions

View file

@ -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)]