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

Method patchable_call_sites

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

Get the list of patchable call sites for this code. Each location in the buffer contains the bytes for a call instruction to the specified target. If the call is to be patched out, the bytes in the region should be replaced with those given in the `MachBufferFinalized::nop` array, repeated as many times as necessary. (The length of the patchable region is guaranteed to be an integer multiple of t

(&self)

Source from the content-addressed store, hash-verified

1997 /// region is guaranteed to be an integer multiple of that NOP
1998 /// unit size.)
1999 pub fn patchable_call_sites(&self) -> impl Iterator<Item = &MachPatchableCallSite> + '_ {
2000 self.patchable_call_sites.iter()
2001 }
2002}
2003
2004/// An item in the exception-handler list for a callsite, with label

Callers 2

disassembleMethod · 0.80
finalize_breakpointsMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected