MCPcopy Index your code
hub / github.com/endbasic/endbasic / patch

Method patch

core/src/compiler/codegen.rs:158–160  ·  view source on GitHub ↗

Overwrites the instruction at `addr` with `op`. Used by the compiler to back-patch placeholder instructions with resolved jump targets.

(&mut self, addr: Address, op: u32)

Source from the content-addressed store, hash-verified

156 ///
157 /// Used by the compiler to back-patch placeholder instructions with resolved jump targets.
158 pub(super) fn patch(&mut self, addr: Address, op: u32) {
159 self.code[addr] = op;
160 }
161
162 /// Records a `fixup` that needs to be applied at `addr`.
163 pub(super) fn add_fixup(&mut self, addr: usize, fixup: Fixup) {

Callers 8

patch_file_contentMethod · 0.80
patch_file_aclsMethod · 0.80
compile_selectFunction · 0.80
compile_doFunction · 0.80
compile_forFunction · 0.80
compile_ifFunction · 0.80
compile_whileFunction · 0.80
compile_user_callableFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected