Crate wasmer_vm[−][src]
Expand description
Runtime library support for Wasmer.
Modules
libcalls | Runtime library calls. |
Structs
ExportsIterator | This iterator allows us to iterate over the exports and offer nice API ergonomics over it. |
FuncDataRegistry | The registry that holds the values that |
FunctionBodyPtr | A safe wrapper around |
Global | A Global instance |
Imports | Resolved import pointers. |
ImportsIterator | This iterator allows us to iterate over the imports and offer nice API ergonomics over it. |
InstanceAllocator | This is an intermediate type that manages the raw allocation and
metadata when creating an [ |
InstanceHandle | A handle holding an |
LinearMemory | A linear memory instance. |
LinearTable | A table instance. |
Mmap | A simple struct consisting of a page-aligned pointer to page-aligned and initially-zeroed memory and a length. |
ModuleInfo | A translated WebAssembly module, excluding the function bodies and memory initializers. |
SectionBodyPtr | Pointers to section data. |
SignatureRegistry | WebAssembly requires that the caller and callee signatures in an indirect call must match. To implement this efficiently, keep a registry of all signatures, shared by all instances, so that call sites can just do an index comparison. |
TargetSharedSignatureIndex | Target specific type for shared signature index. |
TlsRestore | Opaque state used to help control TLS state across stack switches for async support. |
VMBuiltinFunctionIndex | An index type for builtin functions. |
VMCallerCheckedAnyfunc | The VM caller-checked “anyfunc” record, for caller-side signature checking. It consists of the actual function pointer and a signature id to be checked by the caller. |
VMContext | The VM “context”, which is pointed to by the |
VMDynamicFunctionContext | The |
VMExternRef | This type does not do reference counting automatically, reference counting can be done with
|
VMFuncRef | A function reference. A single word that points to metadata about a function. |
VMFunction | A function export value. |
VMFunctionBody | A placeholder byte-sized type which is just used to provide some amount of type safety when dealing with pointers to JIT-compiled function bodies. Note that it’s deliberately not Copy, as we shouldn’t be carelessly copying function body bytes around. |
VMFunctionImport | An imported function. |
VMGlobal | A global export value. |
VMGlobalDefinition | The storage for a WebAssembly global defined within the instance. |
VMGlobalImport | The fields compiled code needs to access to utilize a WebAssembly global variable imported from another instance. |
VMMemory | A memory export value. |
VMMemoryDefinition | The fields compiled code needs to access to utilize a WebAssembly linear memory defined within the instance, namely the start address and the size in bytes. |
VMMemoryImport | The fields compiled code needs to access to utilize a WebAssembly linear memory imported from another instance. |
VMOffsets | This class computes offsets to fields within |
VMSharedSignatureIndex | An index into the shared signature registry, usable for checking signatures at indirect calls. |
VMTable | A table export value. |
VMTableDefinition | The fields compiled code needs to access to utilize a WebAssembly table defined within the instance. |
VMTableImport | The fields compiled code needs to access to utilize a WebAssembly table imported from another instance. |
Enums
GlobalError | Error type describing things that can go wrong when operating on Wasm Globals. |
ImportFunctionEnv | A collection of data about host envs used by imported functions. |
MemoryError | Error type describing things that can go wrong when operating on Wasm Memories. |
MemoryStyle | Implementation styles for WebAssembly linear memory. |
TableElement | A reference stored in a table. Can be either an externref or a funcref. |
TableStyle | Implementation styles for WebAssembly tables. |
Trap | Stores trace message with backtrace. |
TrapCode | A trap code describing the reason for a trap. |
VMExtern | The value of an export passed from one instance to another. |
VMFunctionKind | A function kind is a calling convention into and out of wasm code. |
WeakOrStrongInstanceRef | An |
Constants
VERSION | Version number of this crate. |
Statics
PROBESTACK | The probestack based on the Rust probestack |
Traits
Memory | Trait for implementing Wasm Memory used by Wasmer. |
Table | Trait for implementing the interface of a Wasm table. |
TrapHandler | A package of functionality needed by |
Functions
catch_traps⚠ | Catches any wasm traps that happen within the execution of |
catch_traps_with_result⚠ | Catches any wasm traps that happen within the execution of |
init_traps | This function is required to be called before any WebAssembly is entered. This will configure global state such as signal handlers to prepare the process to receive wasm traps. |
raise_lib_trap⚠ | Raises a trap from inside library code immediately. |
raise_user_trap⚠ | Raises a user-defined trap immediately. |
resume_panic⚠ | Carries a Rust panic across wasm code and resumes the panic on the other side. |
wasmer_call_trampoline⚠ | Call the wasm function pointed to by |
Type Definitions
ImportInitializerFuncPtr | The function pointer to call with data and an [ |
TrapHandlerFn | Function which may handle custom signals while processing traps. |
VMTrampoline |
Unions
VMFunctionEnvironment | Union representing the first parameter passed when calling a function. |