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

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

Issue 1433883003: GC plugin: RefPtr<T> is legal if T is RefCountedGC-derived. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(); 96 bool IsGCMixinInstance();
97 bool IsEagerlyFinalized(); 97 bool IsEagerlyFinalized();
98 bool IsGCRefCounted();
98 99
99 bool HasDefinition(); 100 bool HasDefinition();
100 101
101 clang::CXXMethodDecl* DeclaresNewOperator(); 102 clang::CXXMethodDecl* DeclaresNewOperator();
102 103
103 bool RequiresTraceMethod(); 104 bool RequiresTraceMethod();
104 bool NeedsFinalization(); 105 bool NeedsFinalization();
105 bool DeclaresGCMixinMethods(); 106 bool DeclaresGCMixinMethods();
106 bool DeclaresLocalTraceMethod(); 107 bool DeclaresLocalTraceMethod();
107 TracingStatus NeedsTracing(Edge::NeedsTracingOption); 108 TracingStatus NeedsTracing(Edge::NeedsTracingOption);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 182 }
182 } 183 }
183 } 184 }
184 185
185 private: 186 private:
186 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; 187 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache;
187 Cache cache_; 188 Cache cache_;
188 }; 189 };
189 190
190 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ 191 #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