mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Fix Cranelift gen of nonempty lists
This commit is contained in:
parent
5beb65880c
commit
5bf82fa42c
3 changed files with 35 additions and 49 deletions
|
@ -104,10 +104,10 @@ impl<'a> Builtin<'a> {
|
|||
const BYTE_SIZE: u32 = std::mem::size_of::<u8>() as u32;
|
||||
|
||||
/// Number of machine words in an empty one of these
|
||||
const STR_WORDS: u32 = 3;
|
||||
const MAP_WORDS: u32 = 6;
|
||||
const SET_WORDS: u32 = Builtin::MAP_WORDS; // Set is an alias for Map with {} for value
|
||||
const LIST_WORDS: u32 = 3;
|
||||
pub const STR_WORDS: u32 = 2;
|
||||
pub const MAP_WORDS: u32 = 6;
|
||||
pub const SET_WORDS: u32 = Builtin::MAP_WORDS; // Set is an alias for Map with {} for value
|
||||
pub const LIST_WORDS: u32 = 2;
|
||||
|
||||
/// Layout of collection wrapper - a struct of (pointer, length, capacity)
|
||||
pub const WRAPPER_PTR: u32 = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue