wasmer_compiler_cranelift/debug/
address_map.rs1use cranelift_codegen::ir;
5use wasmer_types::entity::PrimaryMap;
6use wasmer_types::LocalFunctionIndex;
7
8pub type ValueLabelsRanges = PrimaryMap<LocalFunctionIndex, cranelift_codegen::ValueLabelsRanges>;
10
11pub type StackSlots = PrimaryMap<LocalFunctionIndex, ir::StackSlots>;
13
14#[derive(Debug, Clone)]
16pub enum ModuleInfoMemoryOffset {
17 None,
19 Defined(u32),
21 Imported(u32),
23}
24
25#[derive(Debug, Clone)]
27pub struct ModuleInfoVmctxInfo {
28 pub memory_offset: ModuleInfoMemoryOffset,
30
31 pub stack_slots: StackSlots,
33}