#ifndef ArrayPrototype_h
#define ArrayPrototype_h
#include "JSArray.h"
#include "Lookup.h"
namespace JSC {
class ArrayPrototype : public JSArray {
private:
ArrayPrototype(JSGlobalObject*, Structure*);
public:
typedef JSArray Base;
static ArrayPrototype* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
{
ArrayPrototype* prototype = new (NotNull, allocateCell<ArrayPrototype>(*exec->heap())) ArrayPrototype(globalObject, structure);
prototype->finishCreation(globalObject);
return prototype;
}
static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&);
static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&);
static const ClassInfo s_info;
static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(globalData, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), &s_info);
}
protected:
void finishCreation(JSGlobalObject*);
};
}
#endif // ArrayPrototype_h