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; |