MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / get_inst

Method get_inst

compiler/src/modules/vm/cache.rs:162–164  ·  view source on GitHub ↗
(&self, ip: usize)

Source from the content-addressed store, hash-verified

160
161 #[inline]
162 pub fn get_inst(&self, ip: usize) -> Option<InstanceCache> {
163 self.slots.get(ip).and_then(|s| s.inst).filter(|c| c.promoted)
164 }
165
166 pub fn invalidate_inst(&mut self, ip: usize) {
167 if let Some(s) = self.slots.get_mut(ip) { s.inst = None; }

Callers 2

dispatchMethod · 0.80
exec_arith_or_compareMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected