mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-29 22:51:56 +00:00
call && call_indirect are working
This commit is contained in:
@ -112,6 +112,10 @@ impl ModuleInstanceInterface for EnvModuleInstance {
|
||||
self.instance.function_type(function_index, externals)
|
||||
}
|
||||
|
||||
fn function_type_by_index<'a>(&self, type_index: u32) -> Result<FunctionType, Error> {
|
||||
self.instance.function_type_by_index(type_index)
|
||||
}
|
||||
|
||||
fn table(&self, index: ItemIndex) -> Result<Arc<TableInstance>, Error> {
|
||||
self.instance.table(index)
|
||||
}
|
||||
@ -132,8 +136,9 @@ impl ModuleInstanceInterface for EnvModuleInstance {
|
||||
self.instance.function_reference_indirect(table_idx, type_idx, func_idx, externals)
|
||||
}
|
||||
|
||||
fn function_body<'a>(&'a self, internal_index: u32) -> Result<Option<InternalFunction<'a>>, Error> {
|
||||
self.instance.function_body(internal_index)
|
||||
fn function_body<'a>(&'a self, internal_index: u32, function_type: Option<&FunctionType>) -> Result<Option<InternalFunction<'a>>, Error> {
|
||||
Ok(None)
|
||||
//self.instance.function_body(internal_index, function_type)
|
||||
}
|
||||
|
||||
/*fn call_function(&self, outer: CallerContext, index: ItemIndex, function_type: Option<&FunctionType>) -> Result<Option<RuntimeValue>, Error> {
|
||||
|
Reference in New Issue
Block a user