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

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

Issue 1167123002: Check Member<T> validity for stack allocated objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 98
99 bool HasDefinition();
100
99 clang::CXXMethodDecl* DeclaresNewOperator(); 101 clang::CXXMethodDecl* DeclaresNewOperator();
100 102
101 bool RequiresTraceMethod(); 103 bool RequiresTraceMethod();
102 bool NeedsFinalization(); 104 bool NeedsFinalization();
103 bool DeclaresGCMixinMethods(); 105 bool DeclaresGCMixinMethods();
104 bool DeclaresLocalTraceMethod(); 106 bool DeclaresLocalTraceMethod();
105 TracingStatus NeedsTracing(Edge::NeedsTracingOption); 107 TracingStatus NeedsTracing(Edge::NeedsTracingOption);
106 clang::CXXMethodDecl* InheritsNonVirtualTrace(); 108 clang::CXXMethodDecl* InheritsNonVirtualTrace();
107 bool IsConsideredAbstract(); 109 bool IsConsideredAbstract();
108 110
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 181 }
180 } 182 }
181 } 183 }
182 184
183 private: 185 private:
184 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; 186 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache;
185 Cache cache_; 187 Cache cache_;
186 }; 188 };
187 189
188 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ 190 #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