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 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1781 | 1781 |
1782 GCIdleTimeHeapState ComputeHeapState(); | 1782 GCIdleTimeHeapState ComputeHeapState(); |
1783 | 1783 |
1784 bool PerformIdleTimeAction(GCIdleTimeAction action, | 1784 bool PerformIdleTimeAction(GCIdleTimeAction action, |
1785 GCIdleTimeHeapState heap_state, | 1785 GCIdleTimeHeapState heap_state, |
1786 double deadline_in_ms); | 1786 double deadline_in_ms); |
1787 | 1787 |
1788 void IdleNotificationEpilogue(GCIdleTimeAction action, | 1788 void IdleNotificationEpilogue(GCIdleTimeAction action, |
1789 GCIdleTimeHeapState heap_state, double start_ms, | 1789 GCIdleTimeHeapState heap_state, double start_ms, |
1790 double deadline_in_ms); | 1790 double deadline_in_ms); |
1791 void CheckAndNotifyBackgroundIdleNotification(double idle_time_in_ms, | 1791 void CheckBackgroundIdleNotification(double idle_time_in_ms, double now_ms); |
1792 double now_ms); | |
1793 | 1792 |
1794 inline void UpdateAllocationsHash(HeapObject* object); | 1793 inline void UpdateAllocationsHash(HeapObject* object); |
1795 inline void UpdateAllocationsHash(uint32_t value); | 1794 inline void UpdateAllocationsHash(uint32_t value); |
1796 void PrintAlloctionsHash(); | 1795 void PrintAlloctionsHash(); |
1797 | 1796 |
1798 void AddToRingBuffer(const char* string); | 1797 void AddToRingBuffer(const char* string); |
1799 void GetFromRingBuffer(char* buffer); | 1798 void GetFromRingBuffer(char* buffer); |
1800 | 1799 |
1801 // Attempt to over-approximate the weak closure by marking object groups and | 1800 // Attempt to over-approximate the weak closure by marking object groups and |
1802 // implicit references from global handles, but don't atomically complete | 1801 // implicit references from global handles, but don't atomically complete |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2716 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2715 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2717 | 2716 |
2718 private: | 2717 private: |
2719 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2718 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2720 }; | 2719 }; |
2721 #endif // DEBUG | 2720 #endif // DEBUG |
2722 } // namespace internal | 2721 } // namespace internal |
2723 } // namespace v8 | 2722 } // namespace v8 |
2724 | 2723 |
2725 #endif // V8_HEAP_HEAP_H_ | 2724 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |