OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef TOOLS_BLINK_GC_PLUGIN_CHECK_TRACE_VISITOR_H_ | 5 #ifndef TOOLS_BLINK_GC_PLUGIN_CHECK_TRACE_VISITOR_H_ |
6 #define TOOLS_BLINK_GC_PLUGIN_CHECK_TRACE_VISITOR_H_ | 6 #define TOOLS_BLINK_GC_PLUGIN_CHECK_TRACE_VISITOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "RecordInfo.h" | 10 #include "RecordInfo.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 clang::CXXDependentScopeMemberExpr* expr); | 39 clang::CXXDependentScopeMemberExpr* expr); |
40 bool CheckTraceBaseCall(clang::CallExpr* call); | 40 bool CheckTraceBaseCall(clang::CallExpr* call); |
41 bool CheckTraceFieldMemberCall(clang::CXXMemberCallExpr* call); | 41 bool CheckTraceFieldMemberCall(clang::CXXMemberCallExpr* call); |
42 bool CheckTraceFieldCall(const std::string& name, | 42 bool CheckTraceFieldCall(const std::string& name, |
43 clang::CXXRecordDecl* callee, | 43 clang::CXXRecordDecl* callee, |
44 clang::Expr* arg); | 44 clang::Expr* arg); |
45 bool CheckRegisterWeakMembers(clang::CXXMemberCallExpr* call); | 45 bool CheckRegisterWeakMembers(clang::CXXMemberCallExpr* call); |
46 | 46 |
47 bool IsWeakCallback() const; | 47 bool IsWeakCallback() const; |
48 | 48 |
49 void MarkTraced(RecordInfo::Fields::iterator it); | 49 void MarkTraced(RecordInfo::Field& field); |
50 void FoundField(clang::FieldDecl* field); | 50 void FoundField(clang::FieldDecl* field); |
51 void MarkAllWeakMembersTraced(); | 51 void MarkAllWeakMembersTraced(); |
52 | 52 |
53 clang::CXXMethodDecl* trace_; | 53 clang::CXXMethodDecl* trace_; |
54 RecordInfo* info_; | 54 RecordInfo* info_; |
55 RecordCache* cache_; | 55 RecordCache* cache_; |
56 bool delegates_to_traceimpl_; | 56 bool delegates_to_traceimpl_; |
57 }; | 57 }; |
58 | 58 |
59 #endif // TOOLS_BLINK_GC_PLUGIN_CHECK_TRACE_VISITOR_H_ | 59 #endif // TOOLS_BLINK_GC_PLUGIN_CHECK_TRACE_VISITOR_H_ |
OLD | NEW |