OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1805 GCIdleTimeHeapState heap_state, double start_ms, | 1805 GCIdleTimeHeapState heap_state, double start_ms, |
1806 double deadline_in_ms); | 1806 double deadline_in_ms); |
1807 | 1807 |
1808 inline void UpdateAllocationsHash(HeapObject* object); | 1808 inline void UpdateAllocationsHash(HeapObject* object); |
1809 inline void UpdateAllocationsHash(uint32_t value); | 1809 inline void UpdateAllocationsHash(uint32_t value); |
1810 void PrintAlloctionsHash(); | 1810 void PrintAlloctionsHash(); |
1811 | 1811 |
1812 void AddToRingBuffer(const char* string); | 1812 void AddToRingBuffer(const char* string); |
1813 void GetFromRingBuffer(char* buffer); | 1813 void GetFromRingBuffer(char* buffer); |
1814 | 1814 |
| 1815 void CompactRetainedMaps(ArrayList* retained_maps); |
| 1816 |
1815 // Attempt to over-approximate the weak closure by marking object groups and | 1817 // Attempt to over-approximate the weak closure by marking object groups and |
1816 // implicit references from global handles, but don't atomically complete | 1818 // implicit references from global handles, but don't atomically complete |
1817 // marking. If we continue to mark incrementally, we might have marked | 1819 // marking. If we continue to mark incrementally, we might have marked |
1818 // objects that die later. | 1820 // objects that die later. |
1819 void FinalizeIncrementalMarking(const char* gc_reason); | 1821 void FinalizeIncrementalMarking(const char* gc_reason); |
1820 | 1822 |
1821 // Returns the timer used for a given GC type. | 1823 // Returns the timer used for a given GC type. |
1822 // - GCScavenger: young generation GC | 1824 // - GCScavenger: young generation GC |
1823 // - GCCompactor: full GC | 1825 // - GCCompactor: full GC |
1824 // - GCFinalzeMC: finalization of incremental full GC | 1826 // - GCFinalzeMC: finalization of incremental full GC |
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2729 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2731 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2730 | 2732 |
2731 private: | 2733 private: |
2732 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2734 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2733 }; | 2735 }; |
2734 #endif // DEBUG | 2736 #endif // DEBUG |
2735 } // namespace internal | 2737 } // namespace internal |
2736 } // namespace v8 | 2738 } // namespace v8 |
2737 | 2739 |
2738 #endif // V8_HEAP_HEAP_H_ | 2740 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |