Expand description
Tiered compilation support for Shape VM.
Functions start in Tier 0 (interpreted) and are promoted to JIT compilation tiers based on call frequency:
- Tier 0: Interpreted (all functions start here)
- Tier 1: Baseline JIT (per-function, no cross-function optimization) — after 100 calls
- Tier 2: Optimizing JIT (inlining, constant propagation) — after 10,000 calls
Structs§
- Compilation
Request - Request to compile a function at a higher tier.
- Compilation
Result - Result of background compilation.
- Function
Tier State - Per-function call counter and tier tracking.
- Tier
Manager - Manages tiered compilation state for all functions in a program.
- Tier
Stats - Summary statistics for the tiered compilation system.
Enums§
- Tier
- Execution tier for a function.
Traits§
- Compilation
Backend - Backend trait for pluggable JIT compilation.