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

@@ -167,6 +167,10 @@ pub trait WasmRuntime: FuncEnvironment {
/// Declares a global to the runtime.
fn declare_global(&mut self, global: Global);
/// Return the global for the given global index.
fn get_global(&self, global_index: GlobalIndex) -> &Global;
/// Declares a table to the runtime.
fn declare_table(&mut self, table: Table);
/// Fills a declared table with references to functions in the module.