pub struct AsmCodeSink<'a> {
pub sink: &'a mut MachBuffer<Inst>,
pub incoming_arg_offset: i32,
pub slot_offset: i32,
}Available on crate feature
x86 only.Expand description
Implementor of the [asm::CodeSink] trait.
Fields§
§sink: &'a mut MachBuffer<Inst>The buffer this is emitting into.
incoming_arg_offset: i32The value of KEY_INCOMING_ARG.
slot_offset: i32The value of KEY_SLOT_OFFSET.
Trait Implementations§
Source§impl CodeSink for AsmCodeSink<'_>
impl CodeSink for AsmCodeSink<'_>
Source§fn add_trap(&mut self, code: TrapCode)
fn add_trap(&mut self, code: TrapCode)
Inform the code buffer of a possible trap at the current location;
required for assembling memory accesses.
Source§fn use_target(&mut self, target: DeferredTarget)
fn use_target(&mut self, target: DeferredTarget)
Inform the code buffer that a use of
target is about to happen at the
current offset. Read moreSource§fn known_offset(&self, offset: KnownOffset) -> i32
fn known_offset(&self, offset: KnownOffset) -> i32
Resolves a
KnownOffset value to the actual signed offset.Auto Trait Implementations§
impl<'a> Freeze for AsmCodeSink<'a>
impl<'a> RefUnwindSafe for AsmCodeSink<'a>
impl<'a> Send for AsmCodeSink<'a>
impl<'a> Sync for AsmCodeSink<'a>
impl<'a> Unpin for AsmCodeSink<'a>
impl<'a> !UnwindSafe for AsmCodeSink<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more