Implement function lookups using the table

This commit is contained in:
Mark McCaskey
2019-09-18 16:06:46 -07:00
parent b35a522d28
commit 5741a2cf70
4 changed files with 71 additions and 44 deletions

View File

@ -44,7 +44,7 @@ impl<'a> From<DynFunc<'a>> for Anyfunc<'a> {
}
pub struct AnyfuncTable {
backing: Vec<vm::Anyfunc>,
pub backing: Vec<vm::Anyfunc>,
max: Option<u32>,
}

View File

@ -9,8 +9,7 @@ use std::{cell::RefCell, fmt, ptr, rc::Rc};
mod anyfunc;
pub use self::anyfunc::Anyfunc;
use self::anyfunc::AnyfuncTable;
pub use self::anyfunc::{Anyfunc, AnyfuncTable};
use crate::error::GrowError;
pub enum Element<'a> {