- Node* block = m_blockStack.grow();
- for (int i = m_blockStack.blockLength - 1; i >= 0; --i) {
- Node* node = &block[i];
- new (NotNull, node) Node(this);
+ HandleBlock* newBlock = HandleBlock::create(m_vm->heap.blockAllocator().allocate<HandleBlock>(), this);
+ m_blockList.append(newBlock);
+
+ for (int i = newBlock->nodeCapacity() - 1; i >= 0; --i) {
+ Node* node = newBlock->nodeAtIndex(i);
+ new (NotNull, node) Node;