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

Unified Diff: tools/clang/blink_gc_plugin/tests/cycle_super.cpp

Issue 207913002: Global cycle detection analysis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments Created 6 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 side-by-side diff with in-line comments
Download patch
Index: tools/clang/blink_gc_plugin/tests/cycle_super.cpp
diff --git a/tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp b/tools/clang/blink_gc_plugin/tests/cycle_super.cpp
similarity index 57%
copy from tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp
copy to tools/clang/blink_gc_plugin/tests/cycle_super.cpp
index 0f7cb99f4772d0fb6585e032821da842595d5b0a..41359ed04c4188351c05b2c7d11da8857f420398 100644
--- a/tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp
+++ b/tools/clang/blink_gc_plugin/tests/cycle_super.cpp
@@ -2,13 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "pure_virtual_trace.h"
+#include "cycle_super.h"
namespace WebCore {
+void A::trace(Visitor* visitor) {
+ visitor->trace(m_d);
+}
+
+void B::trace(Visitor* visitor) {
+ A::trace(visitor);
+}
+
void C::trace(Visitor* visitor) {
- visitor->trace(m_a);
- // Is not required to trace base classes B and A.
+ B::trace(visitor);
}
}
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/cycle_super.h ('k') | tools/clang/blink_gc_plugin/tests/cycle_super.flags » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698