| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 Bases& GetBases(); | 79 Bases& GetBases(); |
| 80 clang::CXXMethodDecl* GetTraceMethod(); | 80 clang::CXXMethodDecl* GetTraceMethod(); |
| 81 clang::CXXMethodDecl* GetTraceDispatchMethod(); | 81 clang::CXXMethodDecl* GetTraceDispatchMethod(); |
| 82 | 82 |
| 83 bool GetTemplateArgs(size_t count, TemplateArgs* output_args); | 83 bool GetTemplateArgs(size_t count, TemplateArgs* output_args); |
| 84 | 84 |
| 85 bool IsHeapAllocatedCollection(); | 85 bool IsHeapAllocatedCollection(); |
| 86 bool IsGCDerived(); | 86 bool IsGCDerived(); |
| 87 bool IsGCAllocated(); | 87 bool IsGCAllocated(); |
| 88 bool IsGCFinalized(); | 88 bool IsGCFinalized(); |
| 89 bool IsUnmixedGCMixin(); | 89 bool IsGCMixin(); |
| 90 | 90 |
| 91 bool IsStackAllocated(); | 91 bool IsStackAllocated(); |
| 92 bool RequiresTraceMethod(); | 92 bool RequiresTraceMethod(); |
| 93 bool NeedsFinalization(); | 93 bool NeedsFinalization(); |
| 94 TracingStatus NeedsTracing(Edge::NeedsTracingOption); | 94 TracingStatus NeedsTracing(Edge::NeedsTracingOption); |
| 95 clang::CXXMethodDecl* InheritsNonVirtualTrace(); |
| 96 bool IsConsideredAbstract(); |
| 95 | 97 |
| 96 private: | 98 private: |
| 97 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); | 99 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); |
| 98 | 100 |
| 99 Fields* CollectFields(); | 101 Fields* CollectFields(); |
| 100 Bases* CollectBases(); | 102 Bases* CollectBases(); |
| 101 void DetermineTracingMethods(); | 103 void DetermineTracingMethods(); |
| 102 bool InheritsNonPureTrace(); | 104 bool InheritsNonPureTrace(); |
| 103 | 105 |
| 104 Edge* CreateEdge(const clang::Type* type); | 106 Edge* CreateEdge(const clang::Type* type); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 } | 153 } |
| 152 } | 154 } |
| 153 } | 155 } |
| 154 | 156 |
| 155 private: | 157 private: |
| 156 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; | 158 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; |
| 157 Cache cache_; | 159 Cache cache_; |
| 158 }; | 160 }; |
| 159 | 161 |
| 160 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ | 162 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ |
| OLD | NEW |