mjs | 308be5a | 2006-08-14 03:06:14 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2006 Maks Orlovich |
oliver@apple.com | 5fca29f | 2009-08-11 04:35:02 +0000 | [diff] [blame] | 3 | * Copyright (C) 2006, 2009 Apple, Inc. |
mjs | 308be5a | 2006-08-14 03:06:14 +0000 | [diff] [blame] | 4 | * |
| 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.org | 312c8e2 | 2008-03-18 14:46:17 +0000 | [diff] [blame] | 22 | #include "config.h" |
mjs | 308be5a | 2006-08-14 03:06:14 +0000 | [diff] [blame] | 23 | #include "JSWrapperObject.h" |
| 24 | |
cwzwarich@webkit.org | 3f782f6 | 2008-09-08 01:28:33 +0000 | [diff] [blame] | 25 | namespace JSC { |
mjs | 308be5a | 2006-08-14 03:06:14 +0000 | [diff] [blame] | 26 | |
ggaren@apple.com | fea4353 | 2008-08-17 20:23:49 +0000 | [diff] [blame] | 27 | ASSERT_CLASS_FITS_IN_CELL(JSWrapperObject); |
| 28 | |
oliver@apple.com | 433d02f | 2011-04-21 23:08:15 +0000 | [diff] [blame] | 29 | void JSWrapperObject::visitChildren(SlotVisitor& visitor) |
mjs | 308be5a | 2006-08-14 03:06:14 +0000 | [diff] [blame] | 30 | { |
oliver@apple.com | 4103716 | 2011-05-14 22:10:01 +0000 | [diff] [blame] | 31 | ASSERT_GC_OBJECT_INHERITS(this, &s_info); |
| 32 | COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag); |
| 33 | ASSERT(structure()->typeInfo().overridesVisitChildren()); |
oliver@apple.com | 433d02f | 2011-04-21 23:08:15 +0000 | [diff] [blame] | 34 | JSObject::visitChildren(visitor); |
oliver@apple.com | 5fca29f | 2009-08-11 04:35:02 +0000 | [diff] [blame] | 35 | if (m_internalValue) |
oliver@apple.com | 433d02f | 2011-04-21 23:08:15 +0000 | [diff] [blame] | 36 | visitor.append(&m_internalValue); |
mjs | 308be5a | 2006-08-14 03:06:14 +0000 | [diff] [blame] | 37 | } |
| 38 | |
cwzwarich@webkit.org | 3f782f6 | 2008-09-08 01:28:33 +0000 | [diff] [blame] | 39 | } // namespace JSC |