Closed jonmeow closed 1 day ago
Depends on #4099
Shouldn't block this PR either way, but wanted to also ask whether for completely general data structures we should keep them in //common
instead of //toolchain/base
?
Shouldn't block this PR either way, but wanted to also ask whether for completely general data structures we should keep them in
//common
instead of//toolchain/base
?
Done
Based on discussion around the region handling in generic_region_stack, create a generic structure for the stack-of-vectors support. I also want to add this to InstBlockStack, but that's a little more complex due to GlobalInit, so cutting a PR here to check with review.
My work here is how I noticed #4099; I want to be sure that I'm correct about the issue, but it's the difference between being able to use PeekArray or not.
Note in scope_stack.h, I believe we could remove next_compile_time_index and make it just based on elements_size(). However, I want to verify with you before I make further changes there.