Commit 3dc3f58
feat(core-004): JIT Compilation — multi-tier pipeline, 25 tests
jit_compilation.zig (1212 lines): 3-tier compilation pipeline
(Interpreter->Baseline->Optimizing), FunctionProfile with tier
promotion thresholds (100/10000 calls), CompilationQueue
priority-ordered (hot functions first), CodeCache LRU eviction,
BaselineCompiler for all 9 VSA ops (bind/unbind/bundle2/bundle3/
dot/cosine/hamming/permute/matvec), OptimizingCompiler (4-way
unrolling, fused single-pass cosine, branch-free matvec),
OSR on-stack replacement (500 loop iterations), deoptimization
with 3-retry limit, SpeedupAnalysis (5x baseline, 20x optimizing),
25 tests, build.zig wired (test-jit-compilation step).
Depends on: HW-001 (Hardware Abstraction Layer)
Tech tree: 51/56 (91%), Core branch: 4/4 (100%)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4df2230 commit 3dc3f58
4 files changed
Lines changed: 1451 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1908 | 1908 | | |
1909 | 1909 | | |
1910 | 1910 | | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
1911 | 1924 | | |
0 commit comments