Trait cranelift_codegen::binemit::RelocSink [−][src]
A trait for receiving relocations for code that is emitted directly into memory.
Required methods
fn reloc_block(&mut self, _: CodeOffset, _: Reloc, _: CodeOffset)
[src]
Add a relocation referencing a block at the current offset.
fn reloc_external(
&mut self,
_: CodeOffset,
_: SourceLoc,
_: Reloc,
_: &ExternalName,
_: Addend
)
[src]
&mut self,
_: CodeOffset,
_: SourceLoc,
_: Reloc,
_: &ExternalName,
_: Addend
)
Add a relocation referencing an external symbol at the current offset.
fn reloc_constant(&mut self, _: CodeOffset, _: Reloc, _: ConstantOffset)
[src]
Add a relocation referencing a constant.
fn reloc_jt(&mut self, _: CodeOffset, _: Reloc, _: JumpTable)
[src]
Add a relocation referencing a jump table.
Provided methods
fn add_call_site(&mut self, _: Opcode, _: CodeOffset, _: SourceLoc)
[src]
Track a call site whose return address is the given CodeOffset, for the given opcode. Does nothing in general, only useful for certain embedders (SpiderMonkey).
Implementors
impl RelocSink for NullRelocSink
[src]
fn reloc_block(&mut self, _: CodeOffset, _: Reloc, _: CodeOffset)
[src]
fn reloc_external(
&mut self,
_: CodeOffset,
_: SourceLoc,
_: Reloc,
_: &ExternalName,
_: Addend
)
[src]
&mut self,
_: CodeOffset,
_: SourceLoc,
_: Reloc,
_: &ExternalName,
_: Addend
)