MCPcopy Create free account
hub / github.com/eigenform/perfect / dynamic_relocation

Method dynamic_relocation

perfect/src/asm.rs:484–494  ·  view source on GitHub ↗
(&mut self, id: DynamicLabel, 
        target_offset: isize, field_offset: u8, ref_offset: u8, 
        kind: Self::Relocation)

Source from the content-addressed store, hash-verified

482 }
483
484 fn dynamic_relocation(&mut self, id: DynamicLabel,
485 target_offset: isize, field_offset: u8, ref_offset: u8,
486 kind: Self::Relocation)
487 {
488 let location = self.offset();
489 self.relocs.add_dynamic(id,
490 PatchLoc::new(
491 location, target_offset, field_offset, ref_offset, kind
492 )
493 );
494 }
495
496 fn forward_relocation(&mut self, name: &'static str,
497 target_offset: isize, field_offset: u8, ref_offset: u8,

Callers

nothing calls this directly

Calls 1

offsetMethod · 0.45

Tested by

no test coverage detected