Enum wasmtime_environ::isa::CallConv [−][src]
pub enum CallConv { Fast, Cold, SystemV, WindowsFastcall, AppleAarch64, BaldrdashSystemV, BaldrdashWindows, Baldrdash2020, Probestack, WasmtimeSystemV, WasmtimeFastcall, }
Expand description
Calling convention identifiers.
Variants
Best performance, not ABI-stable.
Smallest caller code size, not ABI-stable.
System V-style convention used on many platforms.
Windows “fastcall” convention, also used for x64 and ARM.
Mac aarch64 calling convention, which is a tweak aarch64 ABI.
SpiderMonkey WebAssembly convention on systems using natively SystemV.
SpiderMonkey WebAssembly convention on Windows.
SpiderMonkey WebAssembly convention for “ABI-2020”, with extra TLS register slots in the frame.
Specialized convention for the probestack function.
Wasmtime equivalent of SystemV, not ABI-stable.
Currently only differs in how multiple return values are handled, returning the first return value in a register and everything else through a return-pointer.
Wasmtime equivalent of WindowsFastcall, not ABI-stable.
Differs from fastcall in the same way as WasmtimeSystemV
.
Implementations
impl CallConv
[src]
impl CallConv
[src]pub fn triple_default(triple: &Triple) -> CallConv
[src]
pub fn triple_default(triple: &Triple) -> CallConv
[src]Return the default calling convention for the given target triple.
pub fn for_libcall(flags: &Flags, default_call_conv: CallConv) -> CallConv
[src]
pub fn for_libcall(flags: &Flags, default_call_conv: CallConv) -> CallConv
[src]Returns the calling convention used for libcalls according to the current flags.
pub fn extends_windows_fastcall(self) -> bool
[src]
pub fn extends_windows_fastcall(self) -> bool
[src]Is the calling convention extending the Windows Fastcall ABI?
pub fn extends_baldrdash(self) -> bool
[src]
pub fn extends_baldrdash(self) -> bool
[src]Is the calling convention extending the Baldrdash ABI?
pub fn extends_wasmtime(self) -> bool
[src]
pub fn extends_wasmtime(self) -> bool
[src]Is the calling convention extending the Wasmtime ABI?
Trait Implementations
impl<'de> Deserialize<'de> for CallConv
[src]
impl<'de> Deserialize<'de> for CallConv
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<CallConv, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<CallConv, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for CallConv
[src]
impl Serialize for CallConv
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Copy for CallConv
[src]
impl Eq for CallConv
[src]
impl StructuralEq for CallConv
[src]
impl StructuralPartialEq for CallConv
[src]
Auto Trait Implementations
impl RefUnwindSafe for CallConv
impl Send for CallConv
impl Sync for CallConv
impl Unpin for CallConv
impl UnwindSafe for CallConv
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,