Changeset 11527 in webkit for trunk/JavaScriptCore/kjs/array_instance.h
- Timestamp:
- Dec 10, 2005, 6:06:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_instance.h
r10857 r11527 28 28 namespace KJS { 29 29 30 class ArrayInstance Imp : public ObjectImp{30 class ArrayInstance : public JSObject { 31 31 public: 32 ArrayInstance Imp(ObjectImp*proto, unsigned initialLength);33 ArrayInstance Imp(ObjectImp*proto, const List &initialValues);34 ~ArrayInstance Imp();32 ArrayInstance(JSObject *proto, unsigned initialLength); 33 ArrayInstance(JSObject *proto, const List &initialValues); 34 ~ArrayInstance(); 35 35 36 36 virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&); 37 37 virtual bool getOwnPropertySlot(ExecState *, unsigned, PropertySlot&); 38 virtual void put(ExecState *exec, const Identifier &propertyName, ValueImp*value, int attr = None);39 virtual void put(ExecState *exec, unsigned propertyName, ValueImp*value, int attr = None);38 virtual void put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr = None); 39 virtual void put(ExecState *exec, unsigned propertyName, JSValue *value, int attr = None); 40 40 virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName); 41 41 virtual bool deleteProperty(ExecState *exec, unsigned propertyName); … … 50 50 51 51 void sort(ExecState *exec); 52 void sort(ExecState *exec, ObjectImp*compareFunction);52 void sort(ExecState *exec, JSObject *compareFunction); 53 53 54 54 private: 55 static ValueImp*lengthGetter(ExecState *, const Identifier&, const PropertySlot&);55 static JSValue *lengthGetter(ExecState *, const Identifier&, const PropertySlot&); 56 56 57 57 void setLength(unsigned newLength, ExecState *exec); … … 64 64 unsigned storageLength; 65 65 unsigned capacity; 66 ValueImp**storage;66 JSValue **storage; 67 67 }; 68 68
Note:
See TracChangeset
for help on using the changeset viewer.