blob: 8d6387ec0ab20adf7afa53e1f10fdad0430f01e2 [file] [log] [blame]
mjs308be5a2006-08-14 03:06:14 +00001/*
2 * Copyright (C) 2006 Maks Orlovich
oliver@apple.com5fca29f2009-08-11 04:35:02 +00003 * Copyright (C) 2006, 2009 Apple, Inc.
mjs308be5a2006-08-14 03:06:14 +00004 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 *
20 */
21
hausmann@webkit.org312c8e22008-03-18 14:46:17 +000022#include "config.h"
mjs308be5a2006-08-14 03:06:14 +000023#include "JSWrapperObject.h"
24
cwzwarich@webkit.org3f782f62008-09-08 01:28:33 +000025namespace JSC {
mjs308be5a2006-08-14 03:06:14 +000026
ggaren@apple.comfea43532008-08-17 20:23:49 +000027ASSERT_CLASS_FITS_IN_CELL(JSWrapperObject);
28
oliver@apple.com433d02f2011-04-21 23:08:15 +000029void JSWrapperObject::visitChildren(SlotVisitor& visitor)
mjs308be5a2006-08-14 03:06:14 +000030{
oliver@apple.com41037162011-05-14 22:10:01 +000031 ASSERT_GC_OBJECT_INHERITS(this, &s_info);
32 COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
33 ASSERT(structure()->typeInfo().overridesVisitChildren());
oliver@apple.com433d02f2011-04-21 23:08:15 +000034 JSObject::visitChildren(visitor);
oliver@apple.com5fca29f2009-08-11 04:35:02 +000035 if (m_internalValue)
oliver@apple.com433d02f2011-04-21 23:08:15 +000036 visitor.append(&m_internalValue);
mjs308be5a2006-08-14 03:06:14 +000037}
38
cwzwarich@webkit.org3f782f62008-09-08 01:28:33 +000039} // namespace JSC