mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
fix hash and compare
This commit is contained in:
parent
bfd189aa19
commit
c57913f767
3 changed files with 27 additions and 25 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue