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

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

Issue 430213003: Blink GC plugin: Require that fields are actually traced by the visitor and identify tracing of dep… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TraceIfNeeded support Created 6 years, 4 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 5faee08da69b78c01d694dfb5d41e2f5009102c6..37466ed7d3b7e2e60a6d87c7f520d5b4b28f8793 100644
--- a/tools/clang/blink_gc_plugin/tests/heap/stubs.h
+++ b/tools/clang/blink_gc_plugin/tests/heap/stubs.h
@@ -218,6 +218,11 @@ class GarbageCollectedMixin {
virtual bool isAlive(Visitor*) const = 0;
};
+template<typename T>
+struct TraceIfNeeded {
+ static void trace(Visitor*, T*);
+};
+
// blink::ScriptWrappable receives special treatment
// so as to allow it to be used together with GarbageCollected<T>,
// even when its user-declared destructor is provided.
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/fields_require_tracing.cpp ('k') | tools/clang/blink_gc_plugin/tests/trace_if_needed.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698