#ifndef ObjectPrototype_h
#define ObjectPrototype_h
#include "JSObject.h"
namespace JSC {
class ObjectPrototype : public JSNonFinalObject {
public:
ObjectPrototype(ExecState*, JSGlobalObject*, Structure*);
static const ClassInfo s_info;
static Structure* createStructure(JSGlobalData& globalData, JSValue prototype)
{
return Structure::create(globalData, prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
}
protected:
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | JSNonFinalObject::StructureFlags;
static const unsigned AnonymousSlotCount = JSNonFinalObject::AnonymousSlotCount + 1;
private:
virtual void put(ExecState*, const Identifier&, JSValue, PutPropertySlot&);
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual bool getOwnPropertySlot(ExecState*, unsigned propertyName, PropertySlot&);
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
bool m_hasNoPropertiesWithUInt32Names;
};
EncodedJSValue JSC_HOST_CALL objectProtoFuncToString(ExecState*);
}
#endif // ObjectPrototype_h