Changeset 1799 in webkit for trunk/JavaScriptCore/kjs/array_object.h
- Timestamp:
- Aug 12, 2002, 1:14:02 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.h
r1024 r1799 30 30 class ArrayInstanceImp : public ObjectImp { 31 31 public: 32 ArrayInstanceImp(const Object &proto); 32 ArrayInstanceImp(const Object &proto, unsigned initialLength); 33 ArrayInstanceImp(const Object &proto, const List &initialValues); 34 ~ArrayInstanceImp(); 33 35 36 virtual Value get(ExecState *exec, const UString &propertyName) const; 37 virtual Value get(ExecState *exec, unsigned propertyName) const; 34 38 virtual void put(ExecState *exec, const UString &propertyName, const Value &value, int attr = None); 35 virtual void putDirect(ExecState *exec, const UString &propertyName, const Value &value, int attr = None); 36 /** 37 * A shallow hasProperty() variant that doesn't look at the prototype's 38 * properties. 39 */ 40 virtual bool hasOwnProperty(ExecState *exec, const UString &propertyName); 39 virtual void put(ExecState *exec, unsigned propertyName, const Value &value, int attr = None); 40 virtual bool hasProperty(ExecState *exec, const UString &propertyName) const; 41 virtual bool hasProperty(ExecState *exec, unsigned propertyName) const; 42 virtual bool deleteProperty(ExecState *exec, const UString &propertyName); 43 virtual bool deleteProperty(ExecState *exec, unsigned propertyName); 44 45 virtual void mark(); 41 46 42 47 virtual const ClassInfo *classInfo() const { return &info; } 43 48 static const ClassInfo info; 49 50 unsigned getLength() const { return length; } 51 52 private: 53 void setLength(unsigned newLength); 54 55 unsigned length; 56 unsigned capacity; 57 Value *storage; 44 58 }; 45 59
Note:
See TracChangeset
for help on using the changeset viewer.