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
Semantic includes a stack structure UnresolvedReferencesStack which stores a bunch of hash maps and recycles them as go up and down the stack.
Generalize this to a NonEmptyRecycleStack structure, which we can also use in many places in transformer.
Additionally, optimize it by using pointers instead of len + capacity, the same way Stack and NonEmptyStack do:
pubstructNonEmptyRecycleStack<T:Default>{/// Pointer to current entry on stack./// Points *to* current entry, not *after* current entry.cursor:NonNull<T>,/// Pointer to start of allocation (first entry)start:NonNull<T>,/// Pointer to after last filled slotend_filled:NonNull<T>,/// Pointer to end of allocationend:NonNull<T>,}
The text was updated successfully, but these errors were encountered:
Semantic includes a stack structure
UnresolvedReferencesStack
which stores a bunch of hash maps and recycles them as go up and down the stack.Generalize this to a
NonEmptyRecycleStack
structure, which we can also use in many places in transformer.Additionally, optimize it by using pointers instead of
len
+capacity
, the same wayStack
andNonEmptyStack
do:The text was updated successfully, but these errors were encountered: