Changeset 9676 in webkit for trunk/JavaScriptCore/kjs/function.h
- Timestamp:
- Jul 12, 2005, 9:48:29 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.h
r9618 r9676 51 51 52 52 void addParameter(const Identifier &n); 53 Identifier getParameterName(int index); 53 54 // parameters in string representation, e.g. (a, b, c) 54 55 UString parameterString() const; … … 88 89 }; 89 90 91 class IndexToNameMap { 92 public: 93 IndexToNameMap(FunctionImp *func, const List &args); 94 ~IndexToNameMap(); 95 96 Identifier& operator[](int index); 97 Identifier& operator[](const Identifier &indexIdentifier); 98 bool isMapped(const Identifier &index) const; 99 void IndexToNameMap::unMap(const Identifier &index); 100 101 private: 102 IndexToNameMap(); // prevent construction w/o parameters 103 int size; 104 Identifier * _map; 105 }; 106 90 107 class ArgumentsImp : public ObjectImp { 91 108 public: 92 ArgumentsImp(ExecState *exec, FunctionImp *func, const List &args); 93 109 ArgumentsImp(ExecState *exec, FunctionImp *func, const List &args, ActivationImp *act); 110 virtual void mark(); 111 virtual Value get(ExecState *exec, const Identifier &propertyName) const; 112 virtual void put(ExecState *exec, const Identifier &propertyName, 113 const Value &value, int attr = None); 114 virtual bool hasOwnProperty(ExecState *exec, const Identifier &propertyName) const; 115 virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName); 94 116 virtual const ClassInfo *classInfo() const { return &info; } 95 117 static const ClassInfo info; 118 private: 119 ActivationImp *_activationObject; 120 mutable IndexToNameMap indexToNameMap; 96 121 }; 97 122
Note:
See TracChangeset
for help on using the changeset viewer.