Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: tools/clang/blink_gc_plugin/RecordInfo.h

Issue 374593002: Support ignorance of base class finalizers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use early returns instead of fallthrough Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/clang/blink_gc_plugin/Config.h ('k') | tools/clang/blink_gc_plugin/RecordInfo.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/Config.h ('k') | tools/clang/blink_gc_plugin/RecordInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698