mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Hash Low Level
This commit is contained in:
parent
cddd64f1c9
commit
64d69b9ec4
3 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
use crate::llvm::build_hash::build_hash;
|
||||
use crate::llvm::build_list::{
|
||||
allocate_list, empty_list, empty_polymorphic_list, list_append, list_concat, list_contains,
|
||||
list_get_unsafe, list_join, list_keep_if, list_len, list_map, list_prepend, list_repeat,
|
||||
|
@ -3086,6 +3087,11 @@ fn run_low_level<'a, 'ctx, 'env>(
|
|||
empty,
|
||||
)
|
||||
}
|
||||
Hash => {
|
||||
let (value, layout) = load_symbol_and_layout(env, scope, &args[0]);
|
||||
|
||||
build_hash(env, value, layout)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue