/*
* Copyright (C) 2006 Maks Orlovich
- * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006, 2009 Apple, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
ASSERT_CLASS_FITS_IN_CELL(JSWrapperObject);
-void JSWrapperObject::mark()
+void JSWrapperObject::visitChildren(SlotVisitor& visitor)
{
- JSObject::mark();
- if (m_internalValue && !m_internalValue.marked())
- m_internalValue.mark();
+ ASSERT_GC_OBJECT_INHERITS(this, &s_info);
+ COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
+ ASSERT(structure()->typeInfo().overridesVisitChildren());
+ JSObject::visitChildren(visitor);
+ if (m_internalValue)
+ visitor.append(&m_internalValue);
}
} // namespace JSC