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

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

Issue 939303005: BlinkGCPlugin: Support overloaded trace() call from template. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a subtle typo. Created 5 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
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 defines the names used by GC infrastructure. 5 // This file defines the names used by GC infrastructure.
6 6
7 // TODO: Restructure the name determination to use fully qualified names (ala, 7 // TODO: Restructure the name determination to use fully qualified names (ala,
8 // blink::Foo) so that the plugin can be enabled for all of chromium. Doing so 8 // blink::Foo) so that the plugin can be enabled for all of chromium. Doing so
9 // would allow us to catch errors with structures outside of blink that might 9 // would allow us to catch errors with structures outside of blink that might
10 // have unsafe pointers to GC allocated blink structures. 10 // have unsafe pointers to GC allocated blink structures.
(...skipping 10 matching lines...) Expand all
21 const char kCreateName[] = "create"; 21 const char kCreateName[] = "create";
22 const char kTraceName[] = "trace"; 22 const char kTraceName[] = "trace";
23 const char kTraceImplName[] = "traceImpl"; 23 const char kTraceImplName[] = "traceImpl";
24 const char kFinalizeName[] = "finalizeGarbageCollectedObject"; 24 const char kFinalizeName[] = "finalizeGarbageCollectedObject";
25 const char kTraceAfterDispatchName[] = "traceAfterDispatch"; 25 const char kTraceAfterDispatchName[] = "traceAfterDispatch";
26 const char kTraceAfterDispatchImplName[] = "traceAfterDispatchImpl"; 26 const char kTraceAfterDispatchImplName[] = "traceAfterDispatchImpl";
27 const char kRegisterWeakMembersName[] = "registerWeakMembers"; 27 const char kRegisterWeakMembersName[] = "registerWeakMembers";
28 const char kHeapAllocatorName[] = "HeapAllocator"; 28 const char kHeapAllocatorName[] = "HeapAllocator";
29 const char kTraceIfNeededName[] = "TraceIfNeeded"; 29 const char kTraceIfNeededName[] = "TraceIfNeeded";
30 const char kVisitorDispatcherName[] = "VisitorDispatcher"; 30 const char kVisitorDispatcherName[] = "VisitorDispatcher";
31 const char kVisitorVarName[] = "visitor";
31 const char kAdjustAndMarkName[] = "adjustAndMark"; 32 const char kAdjustAndMarkName[] = "adjustAndMark";
32 const char kIsHeapObjectAliveName[] = "isHeapObjectAlive"; 33 const char kIsHeapObjectAliveName[] = "isHeapObjectAlive";
33 34
34 class Config { 35 class Config {
35 public: 36 public:
36 static bool IsMember(const std::string& name) { 37 static bool IsMember(const std::string& name) {
37 return name == "Member"; 38 return name == "Member";
38 } 39 }
39 40
40 static bool IsWeakMember(const std::string& name) { 41 static bool IsWeakMember(const std::string& name) {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 259 }
259 260
260 static bool EndsWith(const std::string& str, const std::string& suffix) { 261 static bool EndsWith(const std::string& str, const std::string& suffix) {
261 if (suffix.size() > str.size()) 262 if (suffix.size() > str.size())
262 return false; 263 return false;
263 return str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; 264 return str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0;
264 } 265 }
265 }; 266 };
266 267
267 #endif // TOOLS_BLINK_GC_PLUGIN_CONFIG_H_ 268 #endif // TOOLS_BLINK_GC_PLUGIN_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698