Chromium Code Reviews| 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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 673 // | 673 // |
| 674 // BaseHeap is a parent class of NormalPageHeap and LargeObjectHeap. | 674 // BaseHeap is a parent class of NormalPageHeap and LargeObjectHeap. |
| 675 // NormalPageHeap represents a heap that contains NormalPages | 675 // NormalPageHeap represents a heap that contains NormalPages |
| 676 // and LargeObjectHeap represents a heap that contains LargeObjectPages. | 676 // and LargeObjectHeap represents a heap that contains LargeObjectPages. |
| 677 class PLATFORM_EXPORT BaseHeap { | 677 class PLATFORM_EXPORT BaseHeap { |
| 678 public: | 678 public: |
| 679 BaseHeap(ThreadState*, int); | 679 BaseHeap(ThreadState*, int); |
| 680 virtual ~BaseHeap(); | 680 virtual ~BaseHeap(); |
| 681 void cleanupPages(); | 681 void cleanupPages(); |
| 682 | 682 |
| 683 void dumpMemoryInto(WebProcessMemoryDump*, const String* allocatorBaseName); | |
|
Primiano Tucci (use gerrit)
2015/05/21 18:43:10
nit: const String& ?
ssid
2015/05/22 13:34:06
Done.
| |
| 683 #if ENABLE(ASSERT) || ENABLE(GC_PROFILING) | 684 #if ENABLE(ASSERT) || ENABLE(GC_PROFILING) |
| 684 BasePage* findPageFromAddress(Address); | 685 BasePage* findPageFromAddress(Address); |
| 685 #endif | 686 #endif |
| 686 #if ENABLE(GC_PROFILING) | 687 #if ENABLE(GC_PROFILING) |
| 687 void snapshot(TracedValue*, ThreadState::SnapshotInfo*); | 688 void snapshot(TracedValue*, ThreadState::SnapshotInfo*); |
| 688 virtual void snapshotFreeList(TracedValue&) { }; | 689 virtual void snapshotFreeList(TracedValue&) { }; |
| 689 | 690 |
| 690 void countMarkedObjects(ClassAgeCountsMap&) const; | 691 void countMarkedObjects(ClassAgeCountsMap&) const; |
| 691 void countObjectsToSweep(ClassAgeCountsMap&) const; | 692 void countObjectsToSweep(ClassAgeCountsMap&) const; |
| 692 void incrementMarkedObjectsAge(); | 693 void incrementMarkedObjectsAge(); |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1238 size_t copySize = previousHeader->payloadSize(); | 1239 size_t copySize = previousHeader->payloadSize(); |
| 1239 if (copySize > size) | 1240 if (copySize > size) |
| 1240 copySize = size; | 1241 copySize = size; |
| 1241 memcpy(address, previous, copySize); | 1242 memcpy(address, previous, copySize); |
| 1242 return address; | 1243 return address; |
| 1243 } | 1244 } |
| 1244 | 1245 |
| 1245 } // namespace blink | 1246 } // namespace blink |
| 1246 | 1247 |
| 1247 #endif // Heap_h | 1248 #endif // Heap_h |
| OLD | NEW |