| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 clang::CXXRecordDecl* record_; | 114 clang::CXXRecordDecl* record_; |
| 115 const std::string name_; | 115 const std::string name_; |
| 116 TracingStatus fields_need_tracing_; | 116 TracingStatus fields_need_tracing_; |
| 117 Bases* bases_; | 117 Bases* bases_; |
| 118 Fields* fields_; | 118 Fields* fields_; |
| 119 | 119 |
| 120 enum CachedBool { kFalse = 0, kTrue = 1, kNotComputed = 2 }; | 120 enum CachedBool { kFalse = 0, kTrue = 1, kNotComputed = 2 }; |
| 121 CachedBool is_stack_allocated_; | 121 CachedBool is_stack_allocated_; |
| 122 CachedBool is_non_newable_; | 122 CachedBool is_non_newable_; |
| 123 CachedBool is_only_placement_newable_; | 123 CachedBool is_only_placement_newable_; |
| 124 CachedBool does_need_finalization_; |
| 124 | 125 |
| 125 bool determined_trace_methods_; | 126 bool determined_trace_methods_; |
| 126 clang::CXXMethodDecl* trace_method_; | 127 clang::CXXMethodDecl* trace_method_; |
| 127 clang::CXXMethodDecl* trace_dispatch_method_; | 128 clang::CXXMethodDecl* trace_dispatch_method_; |
| 128 clang::CXXMethodDecl* finalize_dispatch_method_; | 129 clang::CXXMethodDecl* finalize_dispatch_method_; |
| 129 | 130 |
| 130 bool is_gc_derived_; | 131 bool is_gc_derived_; |
| 131 clang::CXXBasePaths* base_paths_; | 132 clang::CXXBasePaths* base_paths_; |
| 132 | 133 |
| 133 friend class RecordCache; | 134 friend class RecordCache; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 164 } | 165 } |
| 165 } | 166 } |
| 166 } | 167 } |
| 167 | 168 |
| 168 private: | 169 private: |
| 169 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; | 170 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; |
| 170 Cache cache_; | 171 Cache cache_; |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ | 174 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ |
| OLD | NEW |