| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 TracingStatus NeedsTracing(Edge::NeedsTracingOption); | 102 TracingStatus NeedsTracing(Edge::NeedsTracingOption); |
| 103 clang::CXXMethodDecl* InheritsNonVirtualTrace(); | 103 clang::CXXMethodDecl* InheritsNonVirtualTrace(); |
| 104 bool IsConsideredAbstract(); | 104 bool IsConsideredAbstract(); |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); | 107 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); |
| 108 | 108 |
| 109 Fields* CollectFields(); | 109 Fields* CollectFields(); |
| 110 Bases* CollectBases(); | 110 Bases* CollectBases(); |
| 111 void DetermineTracingMethods(); | 111 void DetermineTracingMethods(); |
| 112 bool InheritsNonPureTrace(); | 112 bool InheritsTrace(); |
| 113 | 113 |
| 114 Edge* CreateEdge(const clang::Type* type); | 114 Edge* CreateEdge(const clang::Type* type); |
| 115 | 115 |
| 116 RecordCache* cache_; | 116 RecordCache* cache_; |
| 117 clang::CXXRecordDecl* record_; | 117 clang::CXXRecordDecl* record_; |
| 118 const std::string name_; | 118 const std::string name_; |
| 119 TracingStatus fields_need_tracing_; | 119 TracingStatus fields_need_tracing_; |
| 120 Bases* bases_; | 120 Bases* bases_; |
| 121 Fields* fields_; | 121 Fields* fields_; |
| 122 | 122 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 } | 167 } |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 | 170 |
| 171 private: | 171 private: |
| 172 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; | 172 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; |
| 173 Cache cache_; | 173 Cache cache_; |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ | 176 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ |
| OLD | NEW |