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

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

Issue 261973002: Blink GC plugin: require that GC derived classes do not override their new(size_t) operator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only check new(size_t) Created 6 years, 7 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
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 88
89 bool IsHeapAllocatedCollection(); 89 bool IsHeapAllocatedCollection();
90 bool IsGCDerived(); 90 bool IsGCDerived();
91 bool IsGCAllocated(); 91 bool IsGCAllocated();
92 bool IsGCFinalized(); 92 bool IsGCFinalized();
93 bool IsGCMixin(); 93 bool IsGCMixin();
94 bool IsStackAllocated(); 94 bool IsStackAllocated();
95 bool IsNonNewable(); 95 bool IsNonNewable();
96 bool IsOnlyPlacementNewable(); 96 bool IsOnlyPlacementNewable();
97 bool IsTreeShared(); 97 bool IsTreeShared();
98 clang::CXXMethodDecl* DeclaresNewOperator();
98 99
99 bool RequiresTraceMethod(); 100 bool RequiresTraceMethod();
100 bool NeedsFinalization(); 101 bool NeedsFinalization();
101 TracingStatus NeedsTracing(Edge::NeedsTracingOption); 102 TracingStatus NeedsTracing(Edge::NeedsTracingOption);
102 clang::CXXMethodDecl* InheritsNonVirtualTrace(); 103 clang::CXXMethodDecl* InheritsNonVirtualTrace();
103 bool IsConsideredAbstract(); 104 bool IsConsideredAbstract();
104 105
105 private: 106 private:
106 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); 107 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache);
107 108
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 167 }
167 } 168 }
168 } 169 }
169 170
170 private: 171 private:
171 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; 172 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache;
172 Cache cache_; 173 Cache cache_;
173 }; 174 };
174 175
175 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ 176 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp ('k') | tools/clang/blink_gc_plugin/RecordInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698