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

Class OpenPatchRegion

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

Represents the beginning of an editable region in the [`MachBuffer`], while code emission is still occurring. An [`OpenPatchRegion`] is closed by [`MachBuffer::end_patchable`], consuming the [`OpenPatchRegion`] token in the process.

Source from the content-addressed store, hash-verified

478/// still occurring. An [`OpenPatchRegion`] is closed by [`MachBuffer::end_patchable`], consuming
479/// the [`OpenPatchRegion`] token in the process.
480pub struct OpenPatchRegion(usize);
481
482/// A region in the [`MachBuffer`] code buffer that can be edited prior to finalization. An example
483/// of where you might want to use this is for patching instructions that mention constants that

Callers 1

start_patchableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected