#ifndef ARRAY_OBJECT_H_
#define ARRAY_OBJECT_H_
#include "array_instance.h"
#include "function_object.h"
#include "lookup.h"
namespace KJS {
class ArrayPrototype : public ArrayInstance {
public:
ArrayPrototype(ExecState*, ObjectPrototype*);
bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual const ClassInfo* classInfo() const { return &info; }
static const ClassInfo info;
};
class ArrayObjectImp : public InternalFunctionImp {
public:
ArrayObjectImp(ExecState*, FunctionPrototype*, ArrayPrototype*);
virtual bool implementsConstruct() const;
virtual JSObject* construct(ExecState*, const List&);
virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
};
JSValue* arrayProtoFuncToString(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncToLocaleString(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncConcat(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncJoin(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncPop(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncPush(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncReverse(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncShift(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncSlice(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncSort(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncSplice(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncUnShift(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncEvery(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncForEach(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncSome(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncIndexOf(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncFilter(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncMap(ExecState*, JSObject*, const List&);
JSValue* arrayProtoFuncLastIndexOf(ExecState*, JSObject*, const List&);
}
#endif // ARRAY_OBJECT_H_