| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool GetTemplateArgs(size_t count, TemplateArgs* output_args); | 86 bool GetTemplateArgs(size_t count, TemplateArgs* output_args); |
| 87 | 87 |
| 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(); | |
| 97 bool IsEagerlyFinalized(); | 96 bool IsEagerlyFinalized(); |
| 98 bool IsGCRefCounted(); | 97 bool IsGCRefCounted(); |
| 99 | 98 |
| 100 bool HasDefinition(); | 99 bool HasDefinition(); |
| 101 | 100 |
| 102 clang::CXXMethodDecl* DeclaresNewOperator(); | 101 clang::CXXMethodDecl* DeclaresNewOperator(); |
| 103 | 102 |
| 104 bool RequiresTraceMethod(); | 103 bool RequiresTraceMethod(); |
| 105 bool NeedsFinalization(); | 104 bool NeedsFinalization(); |
| 106 bool DeclaresGCMixinMethods(); | 105 bool DeclaresGCMixinMethods(); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 } | 181 } |
| 183 } | 182 } |
| 184 } | 183 } |
| 185 | 184 |
| 186 private: | 185 private: |
| 187 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; | 186 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; |
| 188 Cache cache_; | 187 Cache cache_; |
| 189 }; | 188 }; |
| 190 | 189 |
| 191 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ | 190 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ |
| OLD | NEW |