#ifndef DatePrototype_h
#define DatePrototype_h
#include "DateInstance.h"
namespace JSC {
class ObjectPrototype;
class DatePrototype : public DateInstance {
private:
DatePrototype(VM&, Structure*);
public:
typedef DateInstance Base;
static DatePrototype* create(VM& vm, JSGlobalObject* globalObject, Structure* structure)
{
DatePrototype* prototype = new (NotNull, allocateCell<DatePrototype>(vm.heap)) DatePrototype(vm, structure);
prototype->finishCreation(vm, globalObject);
return prototype;
}
static bool getOwnPropertySlot(JSObject*, ExecState*, PropertyName, PropertySlot&);
DECLARE_INFO;
static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info());
}
protected:
void finishCreation(VM&, JSGlobalObject*);
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | DateInstance::StructureFlags;
};
}
#endif // DatePrototype_h