Changeset 440 for trunk/JavaScriptCore/kjs/JSArray.h
- Timestamp:
- 08/18/08 11:14:49 (5 months ago)
- Files:
-
- trunk/JavaScriptCore/kjs/JSArray.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/JavaScriptCore/kjs/JSArray.h
r414 r440 30 30 31 31 struct ArrayStorage { 32 unsigned m_length; 32 33 unsigned m_vectorLength; 33 34 unsigned m_numValuesInVector; … … 49 50 static const ClassInfo info; 50 51 51 unsigned getLength() const { returnm_length; }52 unsigned length() const { return m_storage->m_length; } 52 53 void setLength(unsigned); // OK to use on new arrays, but not if it might be a RegExpMatchArray. 53 54 … … 82 83 virtual const ClassInfo* classInfo() const { return &info; } 83 84 84 static JSValue* lengthGetter(ExecState*, const Identifier&, const PropertySlot&);85 86 85 bool getOwnPropertySlotSlowCase(ExecState*, unsigned propertyName, PropertySlot&); 87 86 void putSlowCase(ExecState*, unsigned propertyName, JSValue*); … … 94 93 void checkConsistency(ConsistencyCheckType = NormalConsistencyCheck); 95 94 96 unsigned m_length;97 95 unsigned m_fastAccessCutoff; 98 96 ArrayStorage* m_storage;
