pub fn relocate_instructions(
relocations: &[RelocationEntry],
statement_offsets: &[usize],
consts_info: &ConstsInfo,
instructions: &mut [Instruction],
)
Expand description
Applies ‘relocations’ to ‘instructions’.
This is currently O(instruction.len()) rather then O(relocations.len()), But another pass is required anyhow to generate the bytecode and the relocations can be applied during that pass.