(&mut self, instr_idx: usize, cache_base: usize, new_op: Instruction)
| 8088 | /// Install a specialized opcode and set adaptive cooldown bits. |
| 8089 | #[inline] |
| 8090 | fn specialize_at(&mut self, instr_idx: usize, cache_base: usize, new_op: Instruction) { |
| 8091 | unsafe { |
| 8092 | self.code |
| 8093 | .instructions |
| 8094 | .write_adaptive_counter(cache_base, ADAPTIVE_COOLDOWN_VALUE); |
| 8095 | self.code.instructions.replace_op(instr_idx, new_op); |
| 8096 | } |
| 8097 | } |
| 8098 | |
| 8099 | #[inline] |
| 8100 | fn cooldown_adaptive_at(&mut self, cache_base: usize) { |
no test coverage detected