ArrayConstructor.h [plain text]
#ifndef ArrayConstructor_h
#define ArrayConstructor_h
#include "InternalFunction.h"
namespace JSC {
class ArrayPrototype;
class ArrayConstructor : public InternalFunction {
public:
ArrayConstructor(ExecState*, JSGlobalObject*, Structure*, ArrayPrototype*);
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 | InternalFunction::StructureFlags;
private:
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
virtual ConstructType getConstructData(ConstructData&);
virtual CallType getCallData(CallData&);
};
}
#endif // ArrayConstructor_h