Lines Matching refs:payloadSize
165 static PageMemory* allocate(size_t payloadSize)
167 ASSERT(payloadSize > 0);
171 payloadSize = roundToOsPageSize(payloadSize);
177 size_t allocationSize = payloadSize + 2 * osPageSize() + blinkPageSize;
186 Address payloadEnd = payloadBase + payloadSize;
203 return new PageMemory(MemoryRegion(alignedBase, blinkPageEnd - alignedBase), MemoryRegion(payloadBase, payloadSize));
219 base = static_cast<Address>(VirtualAlloc(alignedBase, payloadSize + 2 * osPageSize(), MEM_RESERVE, PAGE_NOACCESS));
222 allocationSize = payloadSize + 2 * osPageSize();
240 PageMemory* storage = new PageMemory(MemoryRegion(base, allocationSize), MemoryRegion(payloadBase, payloadSize));