mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-26 23:21:35 +00:00
Ignore extra arguments.
This commit is contained in:
@ -302,18 +302,14 @@ impl RunnableModule for X64ExecutionContext {
|
|||||||
{
|
{
|
||||||
let callable: extern "C" fn(u64, u64, u64, u64, u64, u64) -> u64 =
|
let callable: extern "C" fn(u64, u64, u64, u64, u64, u64) -> u64 =
|
||||||
std::mem::transmute(func);
|
std::mem::transmute(func);
|
||||||
if args.len() <= 5 {
|
callable(
|
||||||
callable(
|
ctx as u64,
|
||||||
ctx as u64,
|
args.get(0).cloned().unwrap_or(0),
|
||||||
args.get(0).cloned().unwrap_or(0),
|
args.get(1).cloned().unwrap_or(0),
|
||||||
args.get(1).cloned().unwrap_or(0),
|
args.get(2).cloned().unwrap_or(0),
|
||||||
args.get(2).cloned().unwrap_or(0),
|
args.get(3).cloned().unwrap_or(0),
|
||||||
args.get(3).cloned().unwrap_or(0),
|
args.get(4).cloned().unwrap_or(0),
|
||||||
args.get(4).cloned().unwrap_or(0),
|
);
|
||||||
)
|
|
||||||
} else {
|
|
||||||
panic!("aarch64 backend currently supports at most 5 arguments");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Some(execution_context.breakpoints.clone()),
|
Some(execution_context.breakpoints.clone()),
|
||||||
|
Reference in New Issue
Block a user