| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_GC_IDLE_TIME_HANDLER_H_ | 5 #ifndef V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
| 6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_ | 6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
| 7 | 7 |
| 8 #include "src/globals.h" | 8 #include "src/globals.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 return result; | 49 return result; |
| 50 } | 50 } |
| 51 | 51 |
| 52 static GCIdleTimeAction FinalizeSweeping() { | 52 static GCIdleTimeAction FinalizeSweeping() { |
| 53 GCIdleTimeAction result; | 53 GCIdleTimeAction result; |
| 54 result.type = DO_FINALIZE_SWEEPING; | 54 result.type = DO_FINALIZE_SWEEPING; |
| 55 result.parameter = 0; | 55 result.parameter = 0; |
| 56 return result; | 56 return result; |
| 57 } | 57 } |
| 58 | 58 |
| 59 void Print(); |
| 60 |
| 59 GCIdleTimeActionType type; | 61 GCIdleTimeActionType type; |
| 60 intptr_t parameter; | 62 intptr_t parameter; |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 | 65 |
| 64 class GCTracer; | 66 class GCTracer; |
| 65 | 67 |
| 66 // The idle time handler makes decisions about which garbage collection | 68 // The idle time handler makes decisions about which garbage collection |
| 67 // operations are executing during IdleNotification. | 69 // operations are executing during IdleNotification. |
| 68 class GCIdleTimeHandler { | 70 class GCIdleTimeHandler { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 int mark_compacts_since_idle_round_started_; | 145 int mark_compacts_since_idle_round_started_; |
| 144 int scavenges_since_last_idle_round_; | 146 int scavenges_since_last_idle_round_; |
| 145 | 147 |
| 146 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); | 148 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 } // namespace internal | 151 } // namespace internal |
| 150 } // namespace v8 | 152 } // namespace v8 |
| 151 | 153 |
| 152 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ | 154 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
| OLD | NEW |