Implement the memory.fill instruction from the bulk memory proposal

This commit is contained in:
Nick Fitzgerald
2020-02-19 16:41:05 -08:00
parent 98ecef1700
commit 44c28612fb
5 changed files with 188 additions and 10 deletions

View File

@@ -567,6 +567,10 @@ impl VMBuiltinFunctionsArray {
wasmtime_memory_copy as usize;
ptrs[BuiltinFunctionIndex::get_imported_memory_copy_index().index() as usize] =
wasmtime_imported_memory_copy as usize;
ptrs[BuiltinFunctionIndex::get_memory_fill_index().index() as usize] =
wasmtime_memory_fill as usize;
ptrs[BuiltinFunctionIndex::get_imported_memory_fill_index().index() as usize] =
wasmtime_imported_memory_fill as usize;
debug_assert!(ptrs.iter().cloned().all(|p| p != 0));