Crate wasmer_compiler
source ·Expand description
The wasmer-compiler
crate provides the necessary abstractions
to create a compiler.
It provides an universal way of parsing a module via wasmparser
,
while giving the responsibility of compiling specific function
WebAssembly bodies to the Compiler
implementation.
Re-exports§
pub use frame_info::FRAME_INFO;
pub use frame_info::FRAME_INFO;
Structs§
- A compiled wasm module, ready to be instantiated.
- A compiled wasm module that was loaded from a serialized archive.
- Base
Tunables Non-WebAssembly Tunable parameters for WebAssembly compilation. This is the reference implementation of theTunables
trait, used by default. - FRAM
E_ INFO Non-WebAssembly This is a global cache of backtrace frame information for all active - Controls which experimental features will be enabled. Features usually have a corresponding WebAssembly proposal.
- Function
Extent Non-WebAssembly Represents a continuous region of executable memory starting with a function entry point. - Global
Frame Info Registration Non-WebAssembly An RAII structure used to unregister a module’s frame information when the module is destroyed. - Module loaded from an archive. Since
CompileModuleInfo
is part of the public interface of this crate and has to be mutable, it has to be deserialized completely.
Enums§
- Compiled
Function Frame Info Variant Non-WebAssembly The variant of the compiled function frame info which can be an owned type - Frame
Infos Variant Non-WebAssembly The variant of the frame information which can be an owned type or the explicit framed map - An error while instantiating a module.
- The WebAssembly.LinkError object indicates an error during module instantiation (besides traps from the start function).
Constants§
- Version number of this crate.
Traits§
- An
Artifact
is the product that theEngine
implementation produce and use. - Tunables
Non-WebAssembly An engine delegates the creation of memories, tables, and globals to a foreign implementor of this trait. - Trait needed to get downcasting of
Engine
s to work.
Functions§
- get_
trace_ and_ trapcode Non-WebAssembly Given aTrap
, this function returns the Wasm trace and the trap code. - register_
frame_ info Non-WebAssembly Registers a new compiled module’s frame information. - resolve_
imports Non-WebAssembly This function allows to match all imports of aModuleInfo
with concrete definitions provided by aResolver
.
Type Aliases§
- Addend to add to the symbol value.
- Offset in bytes from the beginning of the function.