Module frame_info

Source
Expand description

This module is used for having backtraces in the Wasm runtime. Once the Compiler has compiled the ModuleInfo, and we have a set of compiled functions (addresses and function index) and a module, then we can use this to set a backtrace for that module.

§Example

use wasmer_vm::{FRAME_INFO};
use wasmer_types::ModuleInfo;

let module: ModuleInfo = ...;
FRAME_INFO.register(module, compiled_functions);

Structs§

FunctionExtent
Represents a continuous region of executable memory starting with a function entry point.
FunctionInfo 🔒
GlobalFrameInfo
GlobalFrameInfoRegistration
An RAII structure used to unregister a module’s frame information when the module is destroyed.
ModuleInfoFrameInfo 🔒

Enums§

CompiledFunctionFrameInfoVariant
The variant of the compiled function frame info which can be an owned type
FrameInfosVariant
The variant of the frame information which can be an owned type or the explicit framed map
FunctionAddressMapInstructionVariant
FunctionAddressMapVariant
VecTrapInformationVariant
The variant of the trap information which can be an owned type

Statics§

FRAME_INFO
This is a global cache of backtrace frame information for all active

Functions§

register
Registers a new compiled module’s frame information.