21 #ifndef _OBJECT_OBJECT_H_
22 #define _OBJECT_OBJECT_H_
29 class FunctionPrototypeImp;
37 class ObjectPrototypeImp :
public ObjectImp {
39 ObjectPrototypeImp(ExecState *exec, FunctionPrototypeImp *funcProto);
48 class ObjectProtoFuncImp :
public InternalFunctionImp {
50 ObjectProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto,
51 int i,
int len,
const Identifier &_ident);
53 virtual bool implementsCall()
const;
54 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);
56 enum { ToString, ToLocaleString, ValueOf, HasOwnProperty,
57 IsPrototypeOf, PropertyIsEnumerable };
68 class ObjectObjectImp :
public InternalFunctionImp {
71 ObjectObjectImp(ExecState *exec,
72 ObjectPrototypeImp *objProto,
73 FunctionPrototypeImp *funcProto);
75 virtual bool implementsConstruct()
const;
76 virtual Object construct(ExecState *exec,
const List &args);
77 virtual bool implementsCall()
const;
78 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);