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

Unified Diff: tools/clang/blink_gc_plugin/tests/heap/stubs.h

Issue 960873002: Update from https://crrev.com/318214 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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;
« no previous file with comments | « tools/clang/blink_gc_plugin/RecordInfo.cpp ('k') | tools/clang/blink_gc_plugin/tests/trace_after_dispatch_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698