Enum cranelift_codegen::ir::HeapStyle
source · [−]pub enum HeapStyle {
Dynamic {
bound_gv: GlobalValue,
},
Static {
bound: Uimm64,
},
}
Expand description
Style of heap including style-specific information.
Variants
Dynamic
Fields
bound_gv: GlobalValue
Global value providing the current bound of the heap in bytes.
A dynamic heap can be relocated to a different base address when it is grown.
Static
Fields
bound: Uimm64
Heap bound in bytes. The offset-guard pages are allocated after the bound.
A static heap has a fixed base address and a number of not-yet-allocated pages before the offset-guard pages.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HeapStyle
impl Send for HeapStyle
impl Sync for HeapStyle
impl Unpin for HeapStyle
impl UnwindSafe for HeapStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more