| 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 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2272 | 2272 |
| 2273 GCIdleTimeHandler::HeapState ComputeHeapState(); | 2273 GCIdleTimeHandler::HeapState ComputeHeapState(); |
| 2274 | 2274 |
| 2275 bool PerformIdleTimeAction(GCIdleTimeAction action, | 2275 bool PerformIdleTimeAction(GCIdleTimeAction action, |
| 2276 GCIdleTimeHandler::HeapState heap_state, | 2276 GCIdleTimeHandler::HeapState heap_state, |
| 2277 double deadline_in_ms); | 2277 double deadline_in_ms); |
| 2278 | 2278 |
| 2279 void IdleNotificationEpilogue(GCIdleTimeAction action, | 2279 void IdleNotificationEpilogue(GCIdleTimeAction action, |
| 2280 GCIdleTimeHandler::HeapState heap_state, | 2280 GCIdleTimeHandler::HeapState heap_state, |
| 2281 double start_ms, double deadline_in_ms); | 2281 double start_ms, double deadline_in_ms); |
| 2282 void CheckAndNotifyBackgroundIdleNotification(double idle_time_in_ms, |
| 2283 double now_ms); |
| 2282 | 2284 |
| 2283 void ClearObjectStats(bool clear_last_time_stats = false); | 2285 void ClearObjectStats(bool clear_last_time_stats = false); |
| 2284 | 2286 |
| 2285 inline void UpdateAllocationsHash(HeapObject* object); | 2287 inline void UpdateAllocationsHash(HeapObject* object); |
| 2286 inline void UpdateAllocationsHash(uint32_t value); | 2288 inline void UpdateAllocationsHash(uint32_t value); |
| 2287 inline void PrintAlloctionsHash(); | 2289 inline void PrintAlloctionsHash(); |
| 2288 | 2290 |
| 2289 void AddToRingBuffer(const char* string); | 2291 void AddToRingBuffer(const char* string); |
| 2290 void GetFromRingBuffer(char* buffer); | 2292 void GetFromRingBuffer(char* buffer); |
| 2291 | 2293 |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2865 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2867 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2866 | 2868 |
| 2867 private: | 2869 private: |
| 2868 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2870 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2869 }; | 2871 }; |
| 2870 #endif // DEBUG | 2872 #endif // DEBUG |
| 2871 } | 2873 } |
| 2872 } // namespace v8::internal | 2874 } // namespace v8::internal |
| 2873 | 2875 |
| 2874 #endif // V8_HEAP_HEAP_H_ | 2876 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |