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

This commit is contained in:
Dan Gohman
2017-10-07 08:12:07 -07:00
parent 3841552b7c
commit ef5ad630c8
5 changed files with 41 additions and 67 deletions

View File

@@ -153,6 +153,11 @@ impl WasmRuntime for DummyRuntime {
fn declare_global(&mut self, global: Global) {
self.globals.push(global);
}
fn get_global(&self, global_index: GlobalIndex) -> &Global {
&self.globals[global_index]
}
fn declare_table(&mut self, _: Table) {
//We do nothing
}