You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT: execute guarded dense-index effects in loop regions #448
The optimizer IR already models get_index/set_index and deterministic AArch64 paths can call their canonical runtime operations, but reducible loop-region lowering previously rejected both. This issue adds a guarded isolated packed-dense path so numeric array loops remain native while every observable or shared case exits or calls canonical VM semantics.
Acceptance
Lower get_index and set_index through loop-region SSA with exact two/three-input staging and precise stack maps.
Direct AArch64 reads guard isolated mode, object/Array brand, ordinary dense storage, absent cold/hole/accessor/attribute state, exact uint32 array index, bounds, and numeric result when required.
Direct existing-index writes preserve assignment result and call the non-allocating GC barrier before mutation; growth and every guard miss use canonical fallback.
Shared realms, arguments/typed/sparse arrays, proxies, restricted receivers, prototype/indexed hooks, holes, invalid keys, OOB, and concurrent mutation never use the unlocked direct path.
Completed on main in a130709 and documented in 7b706ea. The focused normal and TSan packed-index gates both pass 5/5; broader packed-array specialization remains tracked by #133.
Activity
feat(jit): lower packed array indices in loops (#448)
docs(jit): document guarded packed indexing (#448)
chrisbbreuer commentedon Jul 22, 2026
Completed on main in a130709 and documented in 7b706ea. The focused normal and TSan packed-index gates both pass 5/5; broader packed-array specialization remains tracked by #133.