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