mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
recurse on lambda set in wasm backend
This commit is contained in:
parent
d6057eafb4
commit
de959d3ad3
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ impl WasmLayout {
|
|||
Layout::Builtin(Builtin::EmptyList) => Self::StackMemory(size),
|
||||
Layout::Builtin(Builtin::EmptyDict) => Self::StackMemory(size),
|
||||
Layout::Builtin(Builtin::EmptySet) => Self::StackMemory(size),
|
||||
Layout::LambdaSet(_) => Self::StackMemory(size),
|
||||
Layout::LambdaSet(lambda_set) => WasmLayout::new(&lambda_set.runtime_representation()),
|
||||
Layout::Struct(_) => Self::StackMemory(size),
|
||||
Layout::Union(UnionLayout::NonRecursive(_)) => Self::StackMemory(size),
|
||||
Layout::Union(UnionLayout::Recursive(_)) => Self::HeapMemory,
|
||||
|
|
|
@ -39,7 +39,7 @@ const MIN_SECTION_ALIGNMENT: usize = 0x40;
|
|||
const PLT_ADDRESS_OFFSET: u64 = 0x10;
|
||||
|
||||
fn report_timing(label: &str, duration: Duration) {
|
||||
&println!("\t{:9.3} ms {}", duration.as_secs_f64() * 1000.0, label,);
|
||||
println!("\t{:9.3} ms {}", duration.as_secs_f64() * 1000.0, label,);
|
||||
}
|
||||
|
||||
pub fn build_app<'a>() -> App<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue