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

@@ -162,6 +162,9 @@ pub trait WasmRuntime: FuncEnvironment {
/// Declares the type (signature) of a local function in the module.
fn declare_func_type(&mut self, sig_index: SignatureIndex);
/// Return the signature index for the given function index.
fn get_func_type(&self, func_index: FunctionIndex) -> SignatureIndex;
/// Declares a global to the runtime.
fn declare_global(&mut self, global: Global);
/// Declares a table to the runtime.