fix hash and compare

This commit is contained in:
Folkert 2021-07-17 22:00:57 +02:00
parent bfd189aa19
commit c57913f767
3 changed files with 27 additions and 25 deletions

View file

@ -170,6 +170,15 @@ impl<'a, 'ctx, 'env> Env<'a, 'ctx, 'env> {
self.ptr_bytes * 2
}
pub fn tag_id_bits(&self) -> u32 {
match self.ptr_bytes {
4 => 2,
8 => 3,
16 => 4,
_ => 0,
}
}
pub fn build_intrinsic_call(
&self,
intrinsic_name: &'static str,