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"
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
);