Clean up Wasm calling convention code

This commit is contained in:
Brian Carroll 2021-11-28 15:06:54 +00:00
parent 27af5897d1
commit 88bf6bf1b7
5 changed files with 303 additions and 169 deletions

View file

@ -118,6 +118,9 @@ pub fn copy_memory(code_builder: &mut CodeBuilder, config: CopyMemoryConfig) {
if config.from_ptr == config.to_ptr && config.from_offset == config.to_offset {
return;
}
if config.size == 0 {
return;
}
let alignment = Align::from(config.alignment_bytes);
let mut i = 0;