Commit 900a7e7
feat(reg-vm,jit): land optimizing-JIT work + clear landing blockers
Large JIT advance on the register-VM native tier (Cranelift): OSR, scalar
replacement (Option/Result/variant/struct), closure inlining/sinking,
combinator expansion, checked-int elision, and a transactional heap-write
boundary, plus the supporting hardening harness (differential + deopt-stress
backends, perf gate, CI lanes, fuzz targets) and the reg_vm/analyzer/hir
module decomposition.
Blocker fixes (this pass, all differential-green in the dev container):
- reg-vm: CallNative added to native_jit_written_reg (stale field memoization)
- reg-vm: OSR pipeline threads the slice-elision ip-map (silent OSR bail)
- reg-vm: closure-fuse invalidates defs on base-register clobber (wrong
polymorphic dispatch)
- reg-vm (OSR eligibility): candidate gate admits GetField + combinator
intrinsics; ListPush is OSR-admissible only for region-local lists; closure
sink gated on statically-proven scalar captures
- reg-vm: native return-guard no longer lets a scratch FieldHandle escape
- reg-vm: try_native/try_osr refuse while mem_budget is armed (heap-writing
native can allocate off-the-meter)
- spec: 7.1/7.2/10/3.1 reconciled with the heap-write transaction (journaled
undo, commit-on-success, abort-on-bail)
Known gap (latent; precise resume default-off): a reassigned scalar param is
not restored on precise deopt -- blocked on J0.1 NativeTy-aware deopt state
maps (repro: precise_deopt_restores_reassigned_scalar_param, #[ignore]).
Verification (dev container): differential 33/0 (incl. force-deopt backends),
jit_acceptance 83/0, rsscript lib 275/0, vm-jit 81/0, deopt-stress 8/0,
default workspace build + lib 156/0, JIT perf gate PASS.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent bede8db commit 900a7e7
161 files changed
Lines changed: 32010 additions & 11233 deletions
File tree
- .github
- actions/rsscript-review
- workflows
- benchmarks
- micro
- packages
- review-cost
- sqlx-sqlite
- native/src
- vm-jit
- baseline
- kernels
- crates
- reir/src/adapters
- rss-testgen/src
- rsscript
- src
- analyzer
- checks/local
- cli
- hir
- package/review
- reg_vm
- intrinsics
- native
- review
- rust_lower
- syntax/parser
- tests
- common
- vm-jit/src
- docs
- development
- ledgers
- planning
- spec
- examples/capability-review-demo
- fuzz
- fuzz_targets
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | | - | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
195 | | - | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
328 | | - | |
| 330 | + | |
329 | 331 | | |
330 | 332 | | |
331 | 333 | | |
| |||
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
339 | | - | |
340 | | - | |
341 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
342 | 347 | | |
343 | 348 | | |
344 | 349 | | |
| |||
This file was deleted.
0 commit comments