Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: Source/wtf/PartitionAlloc.h

Issue 641643004: Reapply the non-MathExtras parts of (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/wtf/DateMath.cpp ('k') | Source/wtf/PartitionAlloc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 size_t totalSizeOfSuperPages; 258 size_t totalSizeOfSuperPages;
259 unsigned numBuckets; 259 unsigned numBuckets;
260 unsigned maxAllocation; 260 unsigned maxAllocation;
261 bool initialized; 261 bool initialized;
262 char* nextSuperPage; 262 char* nextSuperPage;
263 char* nextPartitionPage; 263 char* nextPartitionPage;
264 char* nextPartitionPageEnd; 264 char* nextPartitionPageEnd;
265 PartitionSuperPageExtentEntry* currentExtent; 265 PartitionSuperPageExtentEntry* currentExtent;
266 PartitionSuperPageExtentEntry* firstExtent; 266 PartitionSuperPageExtentEntry* firstExtent;
267 PartitionPage* globalEmptyPageRing[kMaxFreeableSpans]; 267 PartitionPage* globalEmptyPageRing[kMaxFreeableSpans];
268 size_t globalEmptyPageRingIndex; 268 int16_t globalEmptyPageRingIndex;
269 uintptr_t invertedSelf; 269 uintptr_t invertedSelf;
270 270
271 static int gInitializedLock; 271 static int gInitializedLock;
272 static bool gInitialized; 272 static bool gInitialized;
273 static PartitionPage gSeedPage; 273 static PartitionPage gSeedPage;
274 static PartitionBucket gPagedBucket; 274 static PartitionBucket gPagedBucket;
275 }; 275 };
276 276
277 // Never instantiate a PartitionRoot directly, instead use PartitionAlloc. 277 // Never instantiate a PartitionRoot directly, instead use PartitionAlloc.
278 struct PartitionRoot : public PartitionRootBase { 278 struct PartitionRoot : public PartitionRootBase {
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 using WTF::partitionAlloc; 663 using WTF::partitionAlloc;
664 using WTF::partitionFree; 664 using WTF::partitionFree;
665 using WTF::partitionAllocGeneric; 665 using WTF::partitionAllocGeneric;
666 using WTF::partitionFreeGeneric; 666 using WTF::partitionFreeGeneric;
667 using WTF::partitionReallocGeneric; 667 using WTF::partitionReallocGeneric;
668 using WTF::partitionAllocActualSize; 668 using WTF::partitionAllocActualSize;
669 using WTF::partitionAllocSupportsGetSize; 669 using WTF::partitionAllocSupportsGetSize;
670 using WTF::partitionAllocGetSize; 670 using WTF::partitionAllocGetSize;
671 671
672 #endif // WTF_PartitionAlloc_h 672 #endif // WTF_PartitionAlloc_h
OLDNEW
« no previous file with comments | « Source/wtf/DateMath.cpp ('k') | Source/wtf/PartitionAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698