next.js
664ffa90 - turbo-tasks: emit lazy-field tag tables alongside LazyField enum

Commit
68 days ago
turbo-tasks: emit lazy-field tag tables alongside LazyField enum Adds the schema-level constants that the upcoming byte-tail layout will consume: - `LAZY_TAG_<NAME>: u8` per variant (1-based; tag 0 stays the bincode encode sentinel). - `LAZY_N: u8` and a compile-time `assert!(LAZY_N <= 32)` guarding the presence bitmap's `u32` width. - `LAZY_SIZE[tag]`, `LAZY_ALIGN[tag]`, and `LAZY_PADDED_SIZE[tag]` for computing byte offsets when walking the tail. - `LAZY_PERSISTENT_MASK`, `LAZY_META_MASK`, `LAZY_DATA_MASK` for category filtering at the bitmap level. No runtime behavior change. The `lazy: TinyVec<LazyField>` storage is untouched; nothing consumes the new constants yet. 50 backend tests pass.
Author
Committer
Parents
Loading