The use of ArrayStack here is intended to simplify the logic, and also make better use of the inst heap allocations. Prior changes #4101 and #4103 removed the less related logic from InstBlockStack, although #4103 is the actual part that blocked using ArrayStack.
BTW, note the PrintForStackDump implementation was incorrect because it didn't apply size_. This simplification fixes the issue.
The use of ArrayStack here is intended to simplify the logic, and also make better use of the inst heap allocations. Prior changes #4101 and #4103 removed the less related logic from InstBlockStack, although #4103 is the actual part that blocked using ArrayStack.
BTW, note the PrintForStackDump implementation was incorrect because it didn't apply size_. This simplification fixes the issue.