#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)
{
return new (allocateCell<ArrayPrototype>(*exec->heap())) ArrayPrototype(globalObject, structure);
}
bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
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 AnonymousSlotCount = JSArray::AnonymousSlotCount + 1;
};
}
#endif // ArrayPrototype_h