21 #ifndef _FUNCTION_OBJECT_H_
22 #define _FUNCTION_OBJECT_H_
25 #include "object_object.h"
39 virtual bool implementsCall()
const;
54 virtual bool implementsCall()
const;
57 enum { ToString, Apply, Call };
67 class FunctionObjectImp :
public InternalFunctionImp {
69 FunctionObjectImp(ExecState *exec, FunctionPrototypeImp *funcProto);
70 virtual ~FunctionObjectImp();
72 virtual bool implementsConstruct()
const;
73 virtual Object construct(ExecState *exec,
const List &args);
74 virtual bool implementsCall()
const;
75 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);
Represents the current state of script execution.
The initial value of Function.prototype (and thus all objects created with the Function constructor)
Represents an Identifier for a Javascript object.
Base class for all function objects.
Value objects are act as wrappers ("smart pointers") around ValueImp objects and their descendents.