winch(x64): Improve ABI support in trampolines (#6204)
This commit improves ABI support in Winch's trampolines mainly by: * Adding support for the `fastcall` calling convention. * By storing/restoring callee-saved registers. One of the explicit goals of this change is to make tests available in the x86_64 target as a whole and remove the need exclude the windows target. This commit also introduces a `CallingConvention` enum, to better reflect the subset of calling conventions that are supported by Winch.
This commit is contained in:
@@ -34,8 +34,8 @@ mod traps;
|
||||
mod wait_notify;
|
||||
mod wasi_testsuite;
|
||||
mod wast;
|
||||
// Currently Winch is only supported in x86_64 unix platforms.
|
||||
#[cfg(all(target_arch = "x86_64", target_family = "unix"))]
|
||||
// Currently Winch is only supported in x86_64.
|
||||
#[cfg(all(target_arch = "x86_64"))]
|
||||
mod winch;
|
||||
|
||||
/// A helper to compile a module in a new store with reference types enabled.
|
||||
|
||||
Reference in New Issue
Block a user