Expand description
A minimal growable vector (BumpVec) backed by a bump allocator.
JsValue analysis allocates all of its nodes into a per-thread Bump that is
freed in one shot when analysis finishes. For the list children that grow or are rebuilt after
construction, this module provides BumpVec: a Send/Sync growable vector that stores a
raw pointer into the arena, a capacity, and a length.
Structs§
- BumpVec
- A minimal growable vector for the list children of a
JsValuethat grow or are rebuilt after construction (e.g.Array.items,Object.parts,Alternatives.values,Addoperands, and theCall/MemberCalllists). - Into
Iter - By-value iterator returned from
BumpVec::into_iter. Owns the arena buffer’s elements and drops any unconsumed remainder onDrop.