MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / patch_size

Method patch_size

cranelift/codegen/src/isa/x64/inst/mod.rs:1640–1644  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1638 }
1639
1640 fn patch_size(self) -> CodeOffset {
1641 match self {
1642 LabelUse::JmpRel32 | LabelUse::PCRel32 => 4,
1643 }
1644 }
1645
1646 fn patch(self, buffer: &mut [u8], use_offset: CodeOffset, label_offset: CodeOffset) {
1647 let pc_rel = (label_offset as i64) - (use_offset as i64);

Callers 2

handle_fixupMethod · 0.45
emit_veneerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected