1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use cranelift_codegen::ir;
use wasmer_types::entity::PrimaryMap;
use wasmer_types::LocalFunctionIndex;
pub type ValueLabelsRanges = PrimaryMap<LocalFunctionIndex, cranelift_codegen::ValueLabelsRanges>;
pub type StackSlots = PrimaryMap<LocalFunctionIndex, ir::StackSlots>;
#[derive(Debug, Clone)]
pub enum ModuleInfoMemoryOffset {
None,
Defined(u32),
Imported(u32),
}
#[derive(Debug, Clone)]
pub struct ModuleInfoVmctxInfo {
pub memory_offset: ModuleInfoMemoryOffset,
pub stack_slots: StackSlots,
}