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

Method binary_op_extended_specialization

crates/vm/src/frame.rs:7408–7418  ·  view source on GitHub ↗
(
        &self,
        op: bytecode::BinaryOperator,
        lhs: &PyObject,
        rhs: &PyObject,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

7406
7407 #[inline]
7408 fn binary_op_extended_specialization(
7409 &self,
7410 op: bytecode::BinaryOperator,
7411 lhs: &PyObject,
7412 rhs: &PyObject,
7413 vm: &VirtualMachine,
7414 ) -> Option<&'static BinaryOpExtendSpecializationDescr> {
7415 BINARY_OP_EXTEND_DESCRIPTORS
7416 .iter()
7417 .find(|d| d.oparg == op && (d.guard)(lhs, rhs, vm))
7418 }
7419
7420 fn load_attr(&mut self, vm: &VirtualMachine, oparg: LoadAttr) -> FrameResult {
7421 self.adaptive(|s, ii, cb| s.specialize_load_attr(vm, oparg, ii, cb));

Callers 1

specialize_binary_opMethod · 0.80

Calls 2

findMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected