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 "destructor_access_finalized_field.h"
9 HeapObject::~HeapObject()
11 // Valid access to fields.
12 if (m_ref
->foo() && !m_obj
) {
17 // Invalid access to fields.
23 void HeapObject::trace(Visitor
* visitor
)
25 visitor
->trace(m_obj
);
26 visitor
->trace(m_objs
);
27 visitor
->trace(m_part
);
30 void PartOther::trace(Visitor
* visitor
)
32 visitor
->trace(m_obj
);