| 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 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1802 inline void UpdateAllocationsHash(uint32_t value); | 1802 inline void UpdateAllocationsHash(uint32_t value); |
| 1803 void PrintAlloctionsHash(); | 1803 void PrintAlloctionsHash(); |
| 1804 | 1804 |
| 1805 void AddToRingBuffer(const char* string); | 1805 void AddToRingBuffer(const char* string); |
| 1806 void GetFromRingBuffer(char* buffer); | 1806 void GetFromRingBuffer(char* buffer); |
| 1807 | 1807 |
| 1808 // Attempt to over-approximate the weak closure by marking object groups and | 1808 // Attempt to over-approximate the weak closure by marking object groups and |
| 1809 // implicit references from global handles, but don't atomically complete | 1809 // implicit references from global handles, but don't atomically complete |
| 1810 // marking. If we continue to mark incrementally, we might have marked | 1810 // marking. If we continue to mark incrementally, we might have marked |
| 1811 // objects that die later. | 1811 // objects that die later. |
| 1812 void OverApproximateWeakClosure(const char* gc_reason); | 1812 void FinalizeIncrementalMarking(const char* gc_reason); |
| 1813 | 1813 |
| 1814 // Returns the timer used for a given GC type. | 1814 // Returns the timer used for a given GC type. |
| 1815 // - GCScavenger: young generation GC | 1815 // - GCScavenger: young generation GC |
| 1816 // - GCCompactor: full GC | 1816 // - GCCompactor: full GC |
| 1817 // - GCFinalzeMC: finalization of incremental full GC | 1817 // - GCFinalzeMC: finalization of incremental full GC |
| 1818 // - GCFinalizeMCReduceMemory: finalization of incremental full GC with | 1818 // - GCFinalizeMCReduceMemory: finalization of incremental full GC with |
| 1819 // memory reduction | 1819 // memory reduction |
| 1820 HistogramTimer* GCTypeTimer(GarbageCollector collector); | 1820 HistogramTimer* GCTypeTimer(GarbageCollector collector); |
| 1821 | 1821 |
| 1822 // =========================================================================== | 1822 // =========================================================================== |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2723 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2723 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2724 | 2724 |
| 2725 private: | 2725 private: |
| 2726 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2726 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2727 }; | 2727 }; |
| 2728 #endif // DEBUG | 2728 #endif // DEBUG |
| 2729 } // namespace internal | 2729 } // namespace internal |
| 2730 } // namespace v8 | 2730 } // namespace v8 |
| 2731 | 2731 |
| 2732 #endif // V8_HEAP_HEAP_H_ | 2732 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |