public:
typedef JSDestructibleObject Base;
- static JS_EXPORTDATA const ClassInfo s_info;
+ DECLARE_EXPORT_INFO;
JS_EXPORT_PRIVATE const String& name(ExecState*);
const String displayName(ExecState*);
static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue proto)
{
- return Structure::create(vm, globalObject, proto, TypeInfo(ObjectType, StructureFlags), &s_info);
+ return Structure::create(vm, globalObject, proto, TypeInfo(ObjectType, StructureFlags), info());
}
protected:
static const unsigned StructureFlags = ImplementsHasInstance | JSObject::StructureFlags;
- JS_EXPORT_PRIVATE InternalFunction(JSGlobalObject*, Structure*);
+ JS_EXPORT_PRIVATE InternalFunction(VM&, Structure*);
JS_EXPORT_PRIVATE void finishCreation(VM&, const String& name);
inline InternalFunction* asInternalFunction(JSValue value)
{
- ASSERT(asObject(value)->inherits(&InternalFunction::s_info));
+ ASSERT(asObject(value)->inherits(InternalFunction::info()));
return static_cast<InternalFunction*>(asObject(value));
}