pub enum ObservedKind {
Int,
Bool,
Float,
IntList,
IntListI32,
FloatList,
BoolList,
Map,
TextBytes,
Other,
}Expand description
What the VM OBSERVED in each register at the hot back-edge that triggered region compilation — the kinds the adapter SPECULATES on (sound because every later entry re-checks them via the guard set).
Variants§
Int
Bool
Float
IntList
A List whose payload is the unboxed all-Int repr.
IntListI32
A List whose payload is the half-width (Vec<i32>) narrowed Int repr
(ListRepr::IntsI32). Pinned as a 4-byte-element buffer (sign-extending
loads, truncating stores) under LOGOS_NARROW_VM.
FloatList
A List whose payload is the unboxed all-Float repr.
BoolList
A List whose payload is the unboxed all-Bool repr.
Map
A Map (the boxed kernel storage rides a pinned pointer; the int fast lane verifies keys/values per helper call).
TextBytes
An ASCII Text carried AS BYTES: char index == byte index and char
count == byte length, so item i of text is a pinned 1-byte load and
char compares are integer byte compares. Observed ONLY when the Text is
ASCII; a non-ASCII Text stays ObservedKind::Other (keeps bailing) so
the per-char decode path runs and the JIT can never diverge.
Other
Anything the native frame cannot carry (non-ASCII Text, boxed lists, Nothing…).
Trait Implementations§
Source§impl Clone for ObservedKind
impl Clone for ObservedKind
Source§fn clone(&self) -> ObservedKind
fn clone(&self) -> ObservedKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObservedKind
impl Debug for ObservedKind
Source§impl PartialEq for ObservedKind
impl PartialEq for ObservedKind
Source§fn eq(&self, other: &ObservedKind) -> bool
fn eq(&self, other: &ObservedKind) -> bool
self and other values to be equal, and is used by ==.impl Copy for ObservedKind
impl Eq for ObservedKind
impl StructuralPartialEq for ObservedKind
Auto Trait Implementations§
impl Freeze for ObservedKind
impl RefUnwindSafe for ObservedKind
impl Send for ObservedKind
impl Sync for ObservedKind
impl Unpin for ObservedKind
impl UnsafeUnpin for ObservedKind
impl UnwindSafe for ObservedKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.