mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-linking-zig9
This commit is contained in:
commit
c950f6d834
106 changed files with 4163 additions and 1740 deletions
|
@ -299,7 +299,8 @@ impl<'a> Storage<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
fn load_symbol_zig(&mut self, code_builder: &mut CodeBuilder, arg: Symbol) {
|
||||
// TODO: expose something higher level instead, shared among higher-order calls
|
||||
pub fn load_symbol_zig(&mut self, code_builder: &mut CodeBuilder, arg: Symbol) {
|
||||
if let StoredValue::StackMemory {
|
||||
location,
|
||||
size,
|
||||
|
@ -402,7 +403,7 @@ impl<'a> Storage<'a> {
|
|||
|
||||
let return_method = return_layout.return_method(call_conv);
|
||||
let has_return_val = match return_method {
|
||||
Primitive(_) => true,
|
||||
Primitive(..) => true,
|
||||
NoReturnValue => false,
|
||||
WriteToPointerArg => {
|
||||
num_wasm_args += 1;
|
||||
|
@ -508,7 +509,7 @@ impl<'a> Storage<'a> {
|
|||
size
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
size
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue