Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / tools / clang / blink_gc_plugin / tests / fields_require_tracing.cpp
blob880ce1e9d6791c98eed60c6ccc2cfd9e2063aae4
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "fields_require_tracing.h"
7 namespace blink {
9 void PartObject::trace(Visitor* visitor) {
10 m_obj1->trace(visitor); // Don't allow direct tracing.
11 visitor->trace(m_obj2);
12 // Missing visitor->trace(m_obj3);
13 visitor->trace(m_parts);
16 void PartBObject::trace(Visitor* visitor) {
17 // Missing visitor->trace(m_set);
18 visitor->trace(m_vector);
21 void HeapObject::trace(Visitor* visitor) {
22 // Missing visitor->trace(m_part);
23 visitor->trace(m_obj);