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

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

Issue 292743006: Blink GC plugin: disallow GC derived types as part-object fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: support for mixin part objects Created 6 years, 7 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/part_object_to_gc_derived_class.cpp
diff --git a/tools/clang/blink_gc_plugin/tests/stack_allocated.cpp b/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.cpp
similarity index 65%
copy from tools/clang/blink_gc_plugin/tests/stack_allocated.cpp
copy to tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.cpp
index e8a513435f7fdb5194dbaba7438288da6f0fbb0a..6b16e41089baf2aceab15833edd91b1eeaa26dfd 100644
--- a/tools/clang/blink_gc_plugin/tests/stack_allocated.cpp
+++ b/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.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 "part_object_to_gc_derived_class.h"
namespace WebCore {
-void HeapObject::trace(Visitor* visitor)
+void B::trace(Visitor* visitor)
{
+ visitor->trace(m_a);
}
}

Powered by Google App Engine
This is Rietveld 408576698