(&mut self, jump_ip: usize, target: usize)
| 620 | } |
| 621 | |
| 622 | fn patch_jump(&mut self, jump_ip: usize, target: usize) { |
| 623 | match &mut self.instructions[jump_ip] { |
| 624 | Instruction::Jump(ip) | Instruction::JumpIfNonZero32(ip) => { |
| 625 | *ip = target as u32; |
| 626 | } |
| 627 | _ => {} |
| 628 | } |
| 629 | } |
| 630 | |
| 631 | fn patch_jump_if_zero(&mut self, jump_ip: usize, target: usize) { |
| 632 | if let Instruction::JumpIfZero32(ip) = &mut self.instructions[jump_ip] { |
no outgoing calls
no test coverage detected