MCPcopy Index your code
hub / github.com/RustPython/RustPython / specialize_at

Method specialize_at

crates/vm/src/frame.rs:8090–8097  ·  view source on GitHub ↗
(&mut self, instr_idx: usize, cache_base: usize, new_op: Instruction)

Source from the content-addressed store, hash-verified

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) {

Callers 10

specialize_load_attrMethod · 0.80
commit_specializationMethod · 0.80
specialize_callMethod · 0.80
specialize_call_kwMethod · 0.80
specialize_sendMethod · 0.80
specialize_to_boolMethod · 0.80
specialize_store_attrMethod · 0.80

Calls 2

replace_opMethod · 0.80

Tested by

no test coverage detected