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

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

Issue 197863003: Check consistency of manual trace and finalization dispatching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 9 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 | Annotate | Revision Log
« 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 Bases& GetBases(); 79 Bases& GetBases();
80 clang::CXXMethodDecl* GetTraceMethod(); 80 clang::CXXMethodDecl* GetTraceMethod();
81 clang::CXXMethodDecl* GetTraceDispatchMethod(); 81 clang::CXXMethodDecl* GetTraceDispatchMethod();
82 82
83 bool GetTemplateArgs(size_t count, TemplateArgs* output_args); 83 bool GetTemplateArgs(size_t count, TemplateArgs* output_args);
84 84
85 bool IsHeapAllocatedCollection(); 85 bool IsHeapAllocatedCollection();
86 bool IsGCDerived(); 86 bool IsGCDerived();
87 bool IsGCAllocated(); 87 bool IsGCAllocated();
88 bool IsGCFinalized(); 88 bool IsGCFinalized();
89 bool IsUnmixedGCMixin(); 89 bool IsGCMixin();
90 90
91 bool IsStackAllocated(); 91 bool IsStackAllocated();
92 bool RequiresTraceMethod(); 92 bool RequiresTraceMethod();
93 bool NeedsFinalization(); 93 bool NeedsFinalization();
94 TracingStatus NeedsTracing(Edge::NeedsTracingOption); 94 TracingStatus NeedsTracing(Edge::NeedsTracingOption);
95 clang::CXXMethodDecl* InheritsNonVirtualTrace();
96 bool IsConsideredAbstract();
95 97
96 private: 98 private:
97 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); 99 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache);
98 100
99 Fields* CollectFields(); 101 Fields* CollectFields();
100 Bases* CollectBases(); 102 Bases* CollectBases();
101 void DetermineTracingMethods(); 103 void DetermineTracingMethods();
102 bool InheritsNonPureTrace(); 104 bool InheritsNonPureTrace();
103 105
104 Edge* CreateEdge(const clang::Type* type); 106 Edge* CreateEdge(const clang::Type* type);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 } 153 }
152 } 154 }
153 } 155 }
154 156
155 private: 157 private:
156 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; 158 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache;
157 Cache cache_; 159 Cache cache_;
158 }; 160 };
159 161
160 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ 162 #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