wasmtime: Add criterion micro benchmarks for traps (#4398)
* wasmtime: Rename host->wasm trampolines As we introduce new types of trampolines, having clear names for our existing trampolines will be helpful. * Fix typo in docs for `VMCOMPONENT_MAGIC` * wasmtime: Add criterion micro benchmarks for traps
This commit is contained in:
@@ -20,7 +20,7 @@ use crate::PtrSize;
|
||||
|
||||
/// Equivalent of `VMCONTEXT_MAGIC` except for components.
|
||||
///
|
||||
/// This is stored at the start of all `VMComponentContext` structures adn
|
||||
/// This is stored at the start of all `VMComponentContext` structures and
|
||||
/// double-checked on `VMComponentContext::from_opaque`.
|
||||
pub const VMCOMPONENT_MAGIC: u32 = u32::from_le_bytes(*b"comp");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user