Home | History | Annotate | Download | only in cctest

Lines Matching full:blocks

162 // Tests memory management in a CodeRange by allocating and freeing blocks,
195 List<Block> blocks(1000);
212 blocks.Add(Block(base, static_cast<int>(allocated)));
217 int index = Pseudorandom() % blocks.length();
218 code_range.FreeRawMemory(blocks[index].base, blocks[index].size);
219 current_allocated -= blocks[index].size;
220 if (index < blocks.length() - 1) {
221 blocks[index] = blocks.RemoveLast();
223 blocks.RemoveLast();