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

Unified Diff: tools/clang/blink_gc_plugin/tests/cycle_sub.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_sub.h ('k') | tools/clang/blink_gc_plugin/tests/cycle_sub.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_sub.cpp
diff --git a/tools/clang/blink_gc_plugin/tests/stack_allocated.cpp b/tools/clang/blink_gc_plugin/tests/cycle_sub.cpp
similarity index 64%
copy from tools/clang/blink_gc_plugin/tests/stack_allocated.cpp
copy to tools/clang/blink_gc_plugin/tests/cycle_sub.cpp
index e8a513435f7fdb5194dbaba7438288da6f0fbb0a..5c0d9e6768bed5b8a2d1a6855d9446208aa695ed 100644
--- a/tools/clang/blink_gc_plugin/tests/stack_allocated.cpp
+++ b/tools/clang/blink_gc_plugin/tests/cycle_sub.cpp
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "stack_allocated.h"
+#include "cycle_sub.h"
namespace WebCore {
-void HeapObject::trace(Visitor* visitor)
-{
+void B::trace(Visitor* visitor) {
+ visitor->trace(m_c);
+ A::trace(visitor);
}
}
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/cycle_sub.h ('k') | tools/clang/blink_gc_plugin/tests/cycle_sub.flags » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698