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

Method write_cached_binary_op_extend_descr

crates/vm/src/frame.rs:7376–7389  ·  view source on GitHub ↗
(
        &self,
        cache_base: usize,
        descr: Option<&'static BinaryOpExtendSpecializationDescr>,
    )

Source from the content-addressed store, hash-verified

7374
7375 #[inline]
7376 unsafe fn write_cached_binary_op_extend_descr(
7377 &self,
7378 cache_base: usize,
7379 descr: Option<&'static BinaryOpExtendSpecializationDescr>,
7380 ) {
7381 let ptr = descr.map_or(0, |d| {
7382 d as *const BinaryOpExtendSpecializationDescr as usize
7383 });
7384 unsafe {
7385 self.code
7386 .instructions
7387 .write_cache_ptr(cache_base + BINARY_OP_EXTEND_EXTERNAL_CACHE_OFFSET, ptr);
7388 }
7389 }
7390
7391 #[inline]
7392 fn read_cached_binary_op_extend_descr(

Callers 1

specialize_binary_opMethod · 0.80

Calls 1

write_cache_ptrMethod · 0.80

Tested by

no test coverage detected