mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-17 02:41:21 +00:00
Added DynamicFunc::new method for non x86 architectures
This commit is contained in:
@ -344,6 +344,15 @@ impl<'a> DynamicFunc<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(all(unix, target_arch = "x86_64")))]
|
||||||
|
pub fn new<F>(_signature: Arc<FuncSig>, _func: F) -> Self
|
||||||
|
where
|
||||||
|
F: Fn(&mut vm::Ctx, &[crate::types::Value]) -> Vec<crate::types::Value> + 'static,
|
||||||
|
{
|
||||||
|
unimplemented!("The DynamicFunc::new is not yet implemented in your architecture.");
|
||||||
|
}
|
||||||
|
|
||||||
unsafe extern "C" fn enter_host_polymorphic_i(
|
unsafe extern "C" fn enter_host_polymorphic_i(
|
||||||
ctx: *const CallContext,
|
ctx: *const CallContext,
|
||||||
args: *const u64,
|
args: *const u64,
|
||||||
@ -1015,6 +1024,7 @@ mod tests {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix, target_arch = "x86_64"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn test_many_new_dynamics() {
|
fn test_many_new_dynamics() {
|
||||||
use crate::types::{FuncSig, Type};
|
use crate::types::{FuncSig, Type};
|
||||||
|
Reference in New Issue
Block a user