Struct wasmtime_jit::trampoline::TrampolineRelocSink
source · [−]pub struct TrampolineRelocSink { /* private fields */ }
Expand description
We don’t expect trampoline compilation to produce many relocations, so
this RelocSink
just asserts that it doesn’t recieve most of them, but
handles libcall ones.
Implementations
sourceimpl TrampolineRelocSink
impl TrampolineRelocSink
sourcepub fn relocs(&self) -> &[Relocation]
pub fn relocs(&self) -> &[Relocation]
Returns collected relocations.
Trait Implementations
sourceimpl Default for TrampolineRelocSink
impl Default for TrampolineRelocSink
sourcefn default() -> TrampolineRelocSink
fn default() -> TrampolineRelocSink
Returns the “default value” for a type. Read more
sourceimpl RelocSink for TrampolineRelocSink
impl RelocSink for TrampolineRelocSink
sourcefn reloc_external(
&mut self,
offset: CodeOffset,
_srcloc: SourceLoc,
reloc: Reloc,
name: &ExternalName,
addend: Addend
)
fn reloc_external(
&mut self,
offset: CodeOffset,
_srcloc: SourceLoc,
reloc: Reloc,
name: &ExternalName,
addend: Addend
)
Add a relocation referencing an external symbol at the current offset.
sourcefn reloc_constant(
&mut self,
_code_offset: CodeOffset,
_reloc: Reloc,
_constant_offset: ConstantOffset
)
fn reloc_constant(
&mut self,
_code_offset: CodeOffset,
_reloc: Reloc,
_constant_offset: ConstantOffset
)
Add a relocation referencing a constant.
sourcefn reloc_jt(&mut self, _offset: CodeOffset, _reloc: Reloc, _jt: JumpTable)
fn reloc_jt(&mut self, _offset: CodeOffset, _reloc: Reloc, _jt: JumpTable)
Add a relocation referencing a jump table.
Auto Trait Implementations
impl RefUnwindSafe for TrampolineRelocSink
impl Send for TrampolineRelocSink
impl Sync for TrampolineRelocSink
impl Unpin for TrampolineRelocSink
impl UnwindSafe for TrampolineRelocSink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more