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

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

Issue 301743006: Report DOM partitionAlloc size to V8 GC. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add unittest / fix windows Created 6 years, 6 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/web/WebKit.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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // next extent (if there is one) at the very start of a superpage's metadata 247 // next extent (if there is one) at the very start of a superpage's metadata
248 // area. 248 // area.
249 struct PartitionSuperPageExtentEntry { 249 struct PartitionSuperPageExtentEntry {
250 PartitionRootBase* root; 250 PartitionRootBase* root;
251 char* superPageBase; 251 char* superPageBase;
252 char* superPagesEnd; 252 char* superPagesEnd;
253 PartitionSuperPageExtentEntry* next; 253 PartitionSuperPageExtentEntry* next;
254 }; 254 };
255 255
256 struct WTF_EXPORT PartitionRootBase { 256 struct WTF_EXPORT PartitionRootBase {
257 size_t totalSizeOfCommittedPages;
257 size_t totalSizeOfSuperPages; 258 size_t totalSizeOfSuperPages;
258 unsigned numBuckets; 259 unsigned numBuckets;
259 unsigned maxAllocation; 260 unsigned maxAllocation;
260 bool initialized; 261 bool initialized;
261 char* nextSuperPage; 262 char* nextSuperPage;
262 char* nextPartitionPage; 263 char* nextPartitionPage;
263 char* nextPartitionPageEnd; 264 char* nextPartitionPageEnd;
264 PartitionSuperPageExtentEntry* currentExtent; 265 PartitionSuperPageExtentEntry* currentExtent;
265 PartitionSuperPageExtentEntry* firstExtent; 266 PartitionSuperPageExtentEntry* firstExtent;
266 PartitionPage* globalEmptyPageRing[kMaxFreeableSpans]; 267 PartitionPage* globalEmptyPageRing[kMaxFreeableSpans];
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 using WTF::partitionAlloc; 663 using WTF::partitionAlloc;
663 using WTF::partitionFree; 664 using WTF::partitionFree;
664 using WTF::partitionAllocGeneric; 665 using WTF::partitionAllocGeneric;
665 using WTF::partitionFreeGeneric; 666 using WTF::partitionFreeGeneric;
666 using WTF::partitionReallocGeneric; 667 using WTF::partitionReallocGeneric;
667 using WTF::partitionAllocActualSize; 668 using WTF::partitionAllocActualSize;
668 using WTF::partitionAllocSupportsGetSize; 669 using WTF::partitionAllocSupportsGetSize;
669 using WTF::partitionAllocGetSize; 670 using WTF::partitionAllocGetSize;
670 671
671 #endif // WTF_PartitionAlloc_h 672 #endif // WTF_PartitionAlloc_h
OLDNEW
« no previous file with comments | « Source/web/WebKit.cpp ('k') | Source/wtf/PartitionAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698