Remove the finished_functions field in Instance

Turns out we don't actually need it anywhere any more! This removes an
allocation when instantiating.
This commit is contained in:
Alex Crichton
2020-10-20 22:43:47 -07:00
parent 76998f0404
commit 461ed42772
3 changed files with 8 additions and 14 deletions

View File

@@ -36,7 +36,7 @@ pub(crate) fn create_handle(
let handle = InstanceHandle::new(
Arc::new(module),
Arc::new(()),
finished_functions.into_boxed_slice(),
&finished_functions,
trampolines,
imports,
store.memory_creator(),