22 #ifndef _OBJECT_OBJECT_H_
23 #define _OBJECT_OBJECT_H_
30 class FunctionPrototypeImp;
38 class ObjectPrototypeImp :
public ObjectImp {
40 ObjectPrototypeImp(ExecState *exec, FunctionPrototypeImp *funcProto);
49 class ObjectProtoFuncImp :
public InternalFunctionImp {
51 ObjectProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto,
52 int i,
int len,
const Identifier &_ident);
54 virtual bool implementsCall()
const;
55 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);
57 enum { ToString, ToLocaleString, ValueOf, HasOwnProperty,
58 IsPrototypeOf, PropertyIsEnumerable };
69 class ObjectObjectImp :
public InternalFunctionImp {
72 ObjectObjectImp(ExecState *exec,
73 ObjectPrototypeImp *objProto,
74 FunctionPrototypeImp *funcProto);
76 virtual bool implementsConstruct()
const;
77 virtual Object construct(ExecState *exec,
const List &args);
78 virtual bool implementsCall()
const;
79 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);