#ifndef DateConstructor_h
#define DateConstructor_h
#include "InternalFunction.h"
namespace JSC {
class DatePrototype;
class DateConstructor : public InternalFunction {
public:
typedef InternalFunction Base;
static DateConstructor* create(VM& vm, Structure* structure, DatePrototype* datePrototype)
{
DateConstructor* constructor = new (NotNull, allocateCell<DateConstructor>(vm.heap)) DateConstructor(vm, structure);
constructor->finishCreation(vm, datePrototype);
return constructor;
}
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&, DatePrototype*);
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | InternalFunction::StructureFlags;
private:
DateConstructor(VM&, Structure*);
static ConstructType getConstructData(JSCell*, ConstructData&);
static CallType getCallData(JSCell*, CallData&);
static bool getOwnPropertySlot(JSObject*, ExecState*, PropertyName, PropertySlot&);
};
JSObject* constructDate(ExecState*, JSGlobalObject*, const ArgList&);
}
#endif // DateConstructor_h