Skip to main content

Module feedback

Module feedback 

Source
Expand description

Feedback vectors for inline cache (IC) type profiling.

Each function gets an optional FeedbackVector that records observed types at IC-eligible sites (calls, property accesses, arithmetic, method dispatch). The JIT compiler reads this feedback to generate speculative optimizations.

Structs§

ArithmeticFeedback
Arithmetic feedback: which operand type pairs observed.
ArithmeticTypePair
CallFeedback
Call site feedback: which function targets have been called.
CallTarget
FeedbackVector
Per-function feedback vector: maps bytecode offsets to IC slots.
MethodCacheEntry
MethodFeedback
Method dispatch feedback: which receiver kinds and method handlers observed.
PropertyCacheEntry
PropertyFeedback
Property access feedback: which schemas and field indices observed.

Enums§

FeedbackSlot
A feedback slot records type observations at a single IC site.
ICState
IC state machine: tracks how polymorphic a site has become.

Constants§

RECEIVER_HASHMAP
RECEIVER_TYPED_OBJECT
Receiver kind discriminator for property feedback. Tells the JIT whether to emit a TypedObject schema guard or a HashMap shape guard.