mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-18 19:31:22 +00:00
Fix compilation error on Aarch64.
This commit is contained in:
@ -4,7 +4,7 @@ use crate::{
|
|||||||
error::RuntimeError,
|
error::RuntimeError,
|
||||||
export::{Context, Export, FuncPointer},
|
export::{Context, Export, FuncPointer},
|
||||||
import::IsExport,
|
import::IsExport,
|
||||||
types::{FuncSig, NativeWasmType, Type, Value, WasmExternType},
|
types::{FuncSig, NativeWasmType, Type, WasmExternType},
|
||||||
vm,
|
vm,
|
||||||
};
|
};
|
||||||
use std::{
|
use std::{
|
||||||
@ -246,9 +246,10 @@ where
|
|||||||
#[cfg(all(unix, target_arch = "x86_64"))]
|
#[cfg(all(unix, target_arch = "x86_64"))]
|
||||||
pub fn new_polymorphic<F>(signature: Arc<FuncSig>, func: F) -> Func<'a, Args, Rets, Host>
|
pub fn new_polymorphic<F>(signature: Arc<FuncSig>, func: F) -> Func<'a, Args, Rets, Host>
|
||||||
where
|
where
|
||||||
F: Fn(&mut vm::Ctx, &[Value]) -> Vec<Value> + 'static,
|
F: Fn(&mut vm::Ctx, &[crate::types::Value]) -> Vec<crate::types::Value> + 'static,
|
||||||
{
|
{
|
||||||
use crate::trampoline_x64::*;
|
use crate::trampoline_x64::*;
|
||||||
|
use crate::types::Value;
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
|
|
||||||
struct PolymorphicContext {
|
struct PolymorphicContext {
|
||||||
|
Reference in New Issue
Block a user