Changeset 29588 in webkit for trunk/JavaScriptCore/kjs/function_object.h
- Timestamp:
- Jan 17, 2008, 11:27:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.h
r21889 r29588 29 29 namespace KJS { 30 30 31 /**32 * @internal33 *34 * Class to implement all methods that are properties of the35 * Function.prototype object36 */37 class FunctionProtoFunc: public InternalFunctionImp {38 public:39 FunctionProtoFunc(ExecState*, FunctionPrototype*, int i, int len, const Identifier&);31 /** 32 * @internal 33 * 34 * The initial value of Function.prototype (and thus all objects created 35 * with the Function constructor) 36 */ 37 class FunctionPrototype : public InternalFunctionImp { 38 public: 39 FunctionPrototype(ExecState*); 40 40 41 virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args); 41 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&); 42 }; 42 43 43 enum { ToString, Apply, Call }; 44 private: 45 int id; 46 }; 44 /** 45 * @internal 46 * 47 * The initial value of the the global variable's "Function" property 48 */ 49 class FunctionObjectImp : public InternalFunctionImp { 50 public: 51 FunctionObjectImp(ExecState*, FunctionPrototype*); 47 52 48 /** 49 * @internal 50 * 51 * The initial value of the the global variable's "Function" property 52 */ 53 class FunctionObjectImp : public InternalFunctionImp { 54 public: 55 FunctionObjectImp(ExecState*, FunctionPrototype*); 56 virtual ~FunctionObjectImp(); 53 virtual bool implementsConstruct() const; 54 virtual JSObject* construct(ExecState*, const List&); 55 virtual JSObject* construct(ExecState*, const List&, const Identifier& functionName, const UString& sourceURL, int lineNumber); 56 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&); 57 }; 57 58 58 virtual bool implementsConstruct() const; 59 virtual JSObject* construct(ExecState*, const List& args); 60 virtual JSObject* construct(ExecState*, const List& args, const Identifier& functionName, const UString& sourceURL, int lineNumber); 61 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args); 62 }; 63 64 } // namespace 59 } // namespace KJS 65 60 66 61 #endif // _FUNCTION_OBJECT_H_
Note:
See TracChangeset
for help on using the changeset viewer.