namespace JSC {
-const ClassInfo GetterSetter::s_info = { "GetterSetter", 0, 0, 0 };
+ASSERT_HAS_TRIVIAL_DESTRUCTOR(GetterSetter);
-void GetterSetter::visitChildren(SlotVisitor& visitor)
-{
- ASSERT_GC_OBJECT_INHERITS(this, &s_info);
- ASSERT(structure()->typeInfo().overridesVisitChildren());
- JSCell::visitChildren(visitor);
-
- if (m_getter)
- visitor.append(&m_getter);
- if (m_setter)
- visitor.append(&m_setter);
-}
+const ClassInfo GetterSetter::s_info = { "GetterSetter", 0, 0, 0, CREATE_METHOD_TABLE(GetterSetter) };
-bool GetterSetter::isGetterSetter() const
+void GetterSetter::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
- return true;
+ GetterSetter* thisObject = jsCast<GetterSetter*>(cell);
+ ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
+ ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
+ JSCell::visitChildren(thisObject, visitor);
+
+ if (thisObject->m_getter)
+ visitor.append(&thisObject->m_getter);
+ if (thisObject->m_setter)
+ visitor.append(&thisObject->m_setter);
}
} // namespace JSC