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

Unified Diff: tools/clang/blink_gc_plugin/tests/heap/stubs.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, 10 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 side-by-side diff with in-line comments
Download patch
Index: tools/clang/blink_gc_plugin/tests/heap/stubs.h
diff --git a/tools/clang/blink_gc_plugin/tests/heap/stubs.h b/tools/clang/blink_gc_plugin/tests/heap/stubs.h
index f34fdc41cfe35854fc225cf0d23bd845d59e5cee..3220178c1422a972baf72c4b4db37b881b71ff5c 100644
--- a/tools/clang/blink_gc_plugin/tests/heap/stubs.h
+++ b/tools/clang/blink_gc_plugin/tests/heap/stubs.h
@@ -212,11 +212,17 @@ public:
};
class Visitor : public VisitorHelper<Visitor> {
- public:
+public:
template<typename T, void (T::*method)(Visitor*)>
void registerWeakMembers(const T* obj);
};
+class InlinedGlobalMarkingVisitor
+ : public VisitorHelper<InlinedGlobalMarkingVisitor> {
+public:
+ InlinedGlobalMarkingVisitor* operator->() { return this; }
+};
+
class GarbageCollectedMixin {
public:
virtual void adjustAndMark(Visitor*) const = 0;

Powered by Google App Engine
This is Rietveld 408576698