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

Method add_patchable_call_site

cranelift/codegen/src/machinst/buffer.rs:1780–1785  ·  view source on GitHub ↗

Add a patchable call record at the current offset The actual call is expected to have been emitted; the VCodeInst trait specifies how to NOP it out, and we carry that information to the finalized Machbuffer.

(&mut self, len: u32)

Source from the content-addressed store, hash-verified

1778 /// specifies how to NOP it out, and we carry that information to
1779 /// the finalized Machbuffer.
1780 pub fn add_patchable_call_site(&mut self, len: u32) {
1781 self.patchable_call_sites.push(MachPatchableCallSite {
1782 ret_addr: self.cur_offset(),
1783 len,
1784 });
1785 }
1786
1787 /// Add an unwind record at the current offset.
1788 pub fn add_unwind(&mut self, unwind: UnwindInst) {

Callers 5

emitFunction · 0.80
emit_uncompressedMethod · 0.80
emitMethod · 0.80
pulley_emitFunction · 0.80

Calls 2

cur_offsetMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected