pub struct AsmCodeSink<'a> {
pub sink: &'a mut MachBuffer<MInst>,
pub incoming_arg_offset: i32,
pub slot_offset: i32,
}Expand description
Implementor of the [asm::CodeSink] trait.
Fields§
§sink: &'a mut MachBuffer<MInst>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: u8) -> i32
fn known_offset(&self, offset: u8) -> i32
Resolves a
KnownOffset value to the actual signed offset.