OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file provides a wrapper for CXXRecordDecl that accumulates GC related | 5 // This file provides a wrapper for CXXRecordDecl that accumulates GC related |
6 // information about a class. Accumulated information is memoized and the info | 6 // information about a class. Accumulated information is memoized and the info |
7 // objects are stored in a RecordCache. | 7 // objects are stored in a RecordCache. |
8 | 8 |
9 #ifndef TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ | 9 #ifndef TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ |
10 #define TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ | 10 #define TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 bool IsHeapAllocatedCollection(); | 88 bool IsHeapAllocatedCollection(); |
89 bool IsGCDerived(); | 89 bool IsGCDerived(); |
90 bool IsGCAllocated(); | 90 bool IsGCAllocated(); |
91 bool IsGCFinalized(); | 91 bool IsGCFinalized(); |
92 bool IsGCMixin(); | 92 bool IsGCMixin(); |
93 bool IsStackAllocated(); | 93 bool IsStackAllocated(); |
94 bool IsNonNewable(); | 94 bool IsNonNewable(); |
95 bool IsOnlyPlacementNewable(); | 95 bool IsOnlyPlacementNewable(); |
96 bool IsGCMixinInstance(); | 96 bool IsGCMixinInstance(); |
97 bool IsEagerlyFinalized(); | 97 bool IsEagerlyFinalized(); |
| 98 bool IsGCRefCounted(); |
98 | 99 |
99 bool HasDefinition(); | 100 bool HasDefinition(); |
100 | 101 |
101 clang::CXXMethodDecl* DeclaresNewOperator(); | 102 clang::CXXMethodDecl* DeclaresNewOperator(); |
102 | 103 |
103 bool RequiresTraceMethod(); | 104 bool RequiresTraceMethod(); |
104 bool NeedsFinalization(); | 105 bool NeedsFinalization(); |
105 bool DeclaresGCMixinMethods(); | 106 bool DeclaresGCMixinMethods(); |
106 bool DeclaresLocalTraceMethod(); | 107 bool DeclaresLocalTraceMethod(); |
107 TracingStatus NeedsTracing(Edge::NeedsTracingOption); | 108 TracingStatus NeedsTracing(Edge::NeedsTracingOption); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 } | 182 } |
182 } | 183 } |
183 } | 184 } |
184 | 185 |
185 private: | 186 private: |
186 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; | 187 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; |
187 Cache cache_; | 188 Cache cache_; |
188 }; | 189 }; |
189 | 190 |
190 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ | 191 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ |
OLD | NEW |