#ifndef StringPrototype_h
#define StringPrototype_h
#include "StringObject.h"
namespace JSC {
class ObjectPrototype;
class StringPrototype : public StringObject {
private:
StringPrototype(ExecState*, JSGlobalObject*, Structure*);
public:
typedef StringObject Base;
static StringPrototype* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
{
return new (allocateCell<StringPrototype>(*exec->heap())) StringPrototype(exec, globalObject, structure);
}
virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
static Structure* createStructure(JSGlobalData& globalData, JSValue prototype)
{
return Structure::create(globalData, prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
}
static const ClassInfo s_info;
protected:
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | StringObject::StructureFlags;
COMPILE_ASSERT(!StringObject::AnonymousSlotCount, StringPrototype_stomps_on_your_anonymous_slot);
static const unsigned AnonymousSlotCount = 1;
};
}
#endif // StringPrototype_h