| OLD | NEW |
| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // partitionDumpStatsGeneric for using the memory statistics. | 363 // partitionDumpStatsGeneric for using the memory statistics. |
| 364 class WTF_EXPORT PartitionStatsDumper { | 364 class WTF_EXPORT PartitionStatsDumper { |
| 365 public: | 365 public: |
| 366 virtual void partitionsDumpBucketStats(const char* partitionName, const Part
itionBucketMemoryStats*) = 0; | 366 virtual void partitionsDumpBucketStats(const char* partitionName, const Part
itionBucketMemoryStats*) = 0; |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 WTF_EXPORT void partitionAllocInit(PartitionRoot*, size_t numBuckets, size_t max
Allocation); | 369 WTF_EXPORT void partitionAllocInit(PartitionRoot*, size_t numBuckets, size_t max
Allocation); |
| 370 WTF_EXPORT bool partitionAllocShutdown(PartitionRoot*); | 370 WTF_EXPORT bool partitionAllocShutdown(PartitionRoot*); |
| 371 WTF_EXPORT void partitionAllocGenericInit(PartitionRootGeneric*); | 371 WTF_EXPORT void partitionAllocGenericInit(PartitionRootGeneric*); |
| 372 WTF_EXPORT bool partitionAllocGenericShutdown(PartitionRootGeneric*); | 372 WTF_EXPORT bool partitionAllocGenericShutdown(PartitionRootGeneric*); |
| 373 WTF_EXPORT void partitionPurgeMemory(PartitionRootBase*); | 373 WTF_EXPORT void partitionPurgeMemory(PartitionRoot*); |
| 374 WTF_EXPORT void partitionPurgeMemoryGeneric(PartitionRootGeneric*); |
| 374 | 375 |
| 375 WTF_EXPORT NEVER_INLINE void* partitionAllocSlowPath(PartitionRootBase*, int, si
ze_t, PartitionBucket*); | 376 WTF_EXPORT NEVER_INLINE void* partitionAllocSlowPath(PartitionRootBase*, int, si
ze_t, PartitionBucket*); |
| 376 WTF_EXPORT NEVER_INLINE void partitionFreeSlowPath(PartitionPage*); | 377 WTF_EXPORT NEVER_INLINE void partitionFreeSlowPath(PartitionPage*); |
| 377 WTF_EXPORT NEVER_INLINE void* partitionReallocGeneric(PartitionRootGeneric*, voi
d*, size_t); | 378 WTF_EXPORT NEVER_INLINE void* partitionReallocGeneric(PartitionRootGeneric*, voi
d*, size_t); |
| 378 | 379 |
| 379 WTF_EXPORT void partitionDumpStats(PartitionRoot*, const char* partitionName, Pa
rtitionStatsDumper*); | 380 WTF_EXPORT void partitionDumpStats(PartitionRoot*, const char* partitionName, Pa
rtitionStatsDumper*); |
| 380 WTF_EXPORT void partitionDumpStatsGeneric(PartitionRootGeneric*, const char* par
titionName, PartitionStatsDumper*); | 381 WTF_EXPORT void partitionDumpStatsGeneric(PartitionRootGeneric*, const char* par
titionName, PartitionStatsDumper*); |
| 381 | 382 |
| 382 ALWAYS_INLINE PartitionFreelistEntry* partitionFreelistMask(PartitionFreelistEnt
ry* ptr) | 383 ALWAYS_INLINE PartitionFreelistEntry* partitionFreelistMask(PartitionFreelistEnt
ry* ptr) |
| 383 { | 384 { |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 using WTF::partitionAlloc; | 732 using WTF::partitionAlloc; |
| 732 using WTF::partitionFree; | 733 using WTF::partitionFree; |
| 733 using WTF::partitionAllocGeneric; | 734 using WTF::partitionAllocGeneric; |
| 734 using WTF::partitionFreeGeneric; | 735 using WTF::partitionFreeGeneric; |
| 735 using WTF::partitionReallocGeneric; | 736 using WTF::partitionReallocGeneric; |
| 736 using WTF::partitionAllocActualSize; | 737 using WTF::partitionAllocActualSize; |
| 737 using WTF::partitionAllocSupportsGetSize; | 738 using WTF::partitionAllocSupportsGetSize; |
| 738 using WTF::partitionAllocGetSize; | 739 using WTF::partitionAllocGetSize; |
| 739 | 740 |
| 740 #endif // WTF_PartitionAlloc_h | 741 #endif // WTF_PartitionAlloc_h |
| OLD | NEW |