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

Unified Diff: tools/clang/blink_gc_plugin/tests/cycle_ptrs.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
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/cycle_ptrs.h ('k') | tools/clang/blink_gc_plugin/tests/cycle_ptrs.flags » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/blink_gc_plugin/tests/cycle_ptrs.cpp
diff --git a/tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp b/tools/clang/blink_gc_plugin/tests/cycle_ptrs.cpp
similarity index 64%
copy from tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp
copy to tools/clang/blink_gc_plugin/tests/cycle_ptrs.cpp
index 0f7cb99f4772d0fb6585e032821da842595d5b0a..8fe7b955f3154aea864b2c3c1295374338554393 100644
--- a/tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp
+++ b/tools/clang/blink_gc_plugin/tests/cycle_ptrs.cpp
@@ -2,13 +2,16 @@
// 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_ptrs.h"
namespace WebCore {
-void C::trace(Visitor* visitor) {
+void A::trace(Visitor* visitor) {
+ visitor->trace(m_b);
+}
+
+void B::trace(Visitor* visitor) {
visitor->trace(m_a);
- // Is not required to trace base classes B and A.
}
}
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/cycle_ptrs.h ('k') | tools/clang/blink_gc_plugin/tests/cycle_ptrs.flags » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698