Add a host_state field to Instance.

This allows hosts to embed arbitrary state along with instances.
This commit is contained in:
Dan Gohman
2019-01-04 17:15:22 -08:00
parent 3aef763046
commit 73b2c45313
3 changed files with 23 additions and 6 deletions

View File

@@ -174,6 +174,7 @@ impl CompiledModule {
self.imports.clone(),
&data_initializers,
self.signatures.clone(),
Box::new(()),
)
}
}
@@ -214,6 +215,7 @@ pub fn instantiate(
raw.imports,
&*raw.data_initializers,
raw.signatures,
Box::new(()),
)
.map_err(SetupError::Instantiate)
}