Use the WasmRuntime's type list rather than keeping a separate list.

This commit is contained in:
Dan Gohman
2017-10-06 16:16:39 -07:00
parent 90ed698e83
commit 3841552b7c
4 changed files with 14 additions and 11 deletions

View File

@@ -146,6 +146,10 @@ impl WasmRuntime for DummyRuntime {
self.func_types.push(sig_index);
}
fn get_func_type(&self, func_index: FunctionIndex) -> SignatureIndex {
self.func_types[func_index]
}
fn declare_global(&mut self, global: Global) {
self.globals.push(global);
}