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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 bool GetTemplateArgs(size_t count, TemplateArgs* output_args); | 85 bool GetTemplateArgs(size_t count, TemplateArgs* output_args); |
86 | 86 |
87 bool IsHeapAllocatedCollection(); | 87 bool IsHeapAllocatedCollection(); |
88 bool IsGCDerived(); | 88 bool IsGCDerived(); |
89 bool IsGCAllocated(); | 89 bool IsGCAllocated(); |
90 bool IsGCFinalized(); | 90 bool IsGCFinalized(); |
91 bool IsGCMixin(); | 91 bool IsGCMixin(); |
92 bool IsStackAllocated(); | 92 bool IsStackAllocated(); |
93 bool IsNonNewable(); | 93 bool IsNonNewable(); |
94 bool IsOnlyPlacementNewable(); | 94 bool IsOnlyPlacementNewable(); |
95 bool IsTreeShared(); | |
96 clang::CXXMethodDecl* DeclaresNewOperator(); | 95 clang::CXXMethodDecl* DeclaresNewOperator(); |
97 | 96 |
98 bool RequiresTraceMethod(); | 97 bool RequiresTraceMethod(); |
99 bool NeedsFinalization(); | 98 bool NeedsFinalization(); |
100 TracingStatus NeedsTracing(Edge::NeedsTracingOption); | 99 TracingStatus NeedsTracing(Edge::NeedsTracingOption); |
101 clang::CXXMethodDecl* InheritsNonVirtualTrace(); | 100 clang::CXXMethodDecl* InheritsNonVirtualTrace(); |
102 bool IsConsideredAbstract(); | 101 bool IsConsideredAbstract(); |
103 | 102 |
104 private: | 103 private: |
105 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); | 104 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 164 } |
166 } | 165 } |
167 } | 166 } |
168 | 167 |
169 private: | 168 private: |
170 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; | 169 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; |
171 Cache cache_; | 170 Cache cache_; |
172 }; | 171 }; |
173 | 172 |
174 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ | 173 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ |
OLD | NEW |