mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
reimplement RocList
and RocStr
This commit is contained in:
parent
16e568be76
commit
788c8a6af2
19 changed files with 680 additions and 792 deletions
|
@ -7,6 +7,7 @@ The user needs to analyse the Wasm module's memory to decode the result.
|
|||
use bumpalo::{collections::Vec, Bump};
|
||||
use roc_builtins::bitcode::{FloatWidth, IntWidth};
|
||||
use roc_mono::layout::{Builtin, Layout};
|
||||
use roc_std::ReferenceCount;
|
||||
use roc_target::TargetInfo;
|
||||
|
||||
use crate::wasm32_sized::Wasm32Sized;
|
||||
|
@ -175,7 +176,7 @@ wasm_result_stack_memory!(i128);
|
|||
wasm_result_stack_memory!(RocDec);
|
||||
wasm_result_stack_memory!(RocStr);
|
||||
|
||||
impl<T: Wasm32Result> Wasm32Result for RocList<T> {
|
||||
impl<T: Wasm32Result + ReferenceCount> Wasm32Result for RocList<T> {
|
||||
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
|
||||
build_wrapper_body_stack_memory(code_builder, main_function_index, 12)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue