mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
wasm: fix remaining tests for capacity
This commit is contained in:
parent
38b8c45b23
commit
ad5da76588
3 changed files with 10 additions and 5 deletions
|
@ -186,7 +186,12 @@ wasm_result_primitive!(f64, f64_store, Align::Bytes8);
|
|||
wasm_result_stack_memory!(u128);
|
||||
wasm_result_stack_memory!(i128);
|
||||
wasm_result_stack_memory!(RocDec);
|
||||
wasm_result_stack_memory!(RocStr);
|
||||
|
||||
impl Wasm32Result for RocStr {
|
||||
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
|
||||
build_wrapper_body_stack_memory(code_builder, main_function_index, 12)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Wasm32Result + ReferenceCount> Wasm32Result for RocList<T> {
|
||||
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
|
||||
|
|
|
@ -31,12 +31,12 @@ impl Wasm32Sized for () {
|
|||
}
|
||||
|
||||
impl Wasm32Sized for RocStr {
|
||||
const SIZE_OF_WASM: usize = 8;
|
||||
const SIZE_OF_WASM: usize = 12;
|
||||
const ALIGN_OF_WASM: usize = 4;
|
||||
}
|
||||
|
||||
impl<T: Wasm32Sized + ReferenceCount> Wasm32Sized for RocList<T> {
|
||||
const SIZE_OF_WASM: usize = 8;
|
||||
const SIZE_OF_WASM: usize = 12;
|
||||
const ALIGN_OF_WASM: usize = 4;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue