Implement the memory.copy instruction from the bulk memory proposal

This commit is contained in:
Nick Fitzgerald
2020-02-19 15:37:49 -08:00
parent cb97e4ec8e
commit 98ecef1700
7 changed files with 445 additions and 11 deletions

View File

@@ -563,6 +563,11 @@ impl VMBuiltinFunctionsArray {
ptrs[BuiltinFunctionIndex::get_elem_drop_index().index() as usize] =
wasmtime_elem_drop as usize;
ptrs[BuiltinFunctionIndex::get_memory_copy_index().index() as usize] =
wasmtime_memory_copy as usize;
ptrs[BuiltinFunctionIndex::get_imported_memory_copy_index().index() as usize] =
wasmtime_imported_memory_copy as usize;
debug_assert!(ptrs.iter().cloned().all(|p| p != 0));
Self { ptrs }