OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium 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 BlinkGC_h | 5 #ifndef BlinkGC_h |
6 #define BlinkGC_h | 6 #define BlinkGC_h |
7 | 7 |
8 // BlinkGC.h is a file that defines common things used by Blink GC. | 8 // BlinkGC.h is a file that defines common things used by Blink GC. |
9 | 9 |
10 #include "platform/PlatformExport.h" | 10 #include "platform/PlatformExport.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // can be pointers to Blink GC managed objects on the stack for | 43 // can be pointers to Blink GC managed objects on the stack for |
44 // each thread. When threads reach a safe point they record | 44 // each thread. When threads reach a safe point they record |
45 // whether or not they have pointers on the stack. | 45 // whether or not they have pointers on the stack. |
46 enum StackState { | 46 enum StackState { |
47 NoHeapPointersOnStack, | 47 NoHeapPointersOnStack, |
48 HeapPointersOnStack | 48 HeapPointersOnStack |
49 }; | 49 }; |
50 | 50 |
51 enum GCType { | 51 enum GCType { |
52 // Both of the marking task and the sweeping task run in | 52 // Both of the marking task and the sweeping task run in |
53 // ThreadHeap::collectGarbage(). | 53 // Heap::collectGarbage(). |
54 GCWithSweep, | 54 GCWithSweep, |
55 // Only the marking task runs in ThreadHeap::collectGarbage(). | 55 // Only the marking task runs in Heap::collectGarbage(). |
56 // The sweeping task is split into chunks and scheduled lazily. | 56 // The sweeping task is split into chunks and scheduled lazily. |
57 GCWithoutSweep, | 57 GCWithoutSweep, |
58 // Only the marking task runs just to take a heap snapshot. | 58 // Only the marking task runs just to take a heap snapshot. |
59 // The sweeping task doesn't run. The marks added in the marking task | 59 // The sweeping task doesn't run. The marks added in the marking task |
60 // are just cleared. | 60 // are just cleared. |
61 TakeSnapshot, | 61 TakeSnapshot, |
62 // The marking task does not mark objects outside the heap of the GCing | 62 // The marking task does not mark objects outside the heap of the GCing |
63 // thread. | 63 // thread. |
64 ThreadTerminationGC, | 64 ThreadTerminationGC, |
65 // Just run thread-local weak processing. The weak processing may trace | 65 // Just run thread-local weak processing. The weak processing may trace |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 enum V8GCType { | 100 enum V8GCType { |
101 V8MinorGC, | 101 V8MinorGC, |
102 V8MajorGC, | 102 V8MajorGC, |
103 }; | 103 }; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace blink | 106 } // namespace blink |
107 | 107 |
108 #endif | 108 #endif |
OLD | NEW |