Changeset 34964 in webkit for trunk/JavaScriptCore/kjs/JSArray.cpp
- Timestamp:
- Jul 2, 2008, 5:47:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSArray.cpp
r34868 r34964 35 35 namespace KJS { 36 36 37 typedef HashMap<unsigned, JSValue*> SparseArrayValueMap;38 39 struct ArrayStorage {40 unsigned m_vectorLength;41 unsigned m_numValuesInVector;42 SparseArrayValueMap* m_sparseValueMap;43 void* lazyCreationData; // An JSArray subclass can use this to fill the vector lazily.44 JSValue* m_vector[1];45 };46 47 37 // 0xFFFFFFFF is a bit weird -- is not an array index even though it's an integer. 48 38 static const unsigned maxArrayIndex = 0xFFFFFFFEU; … … 82 72 #endif 83 73 84 JSArray::JSArray(JS Object* prototype, unsigned initialLength)74 JSArray::JSArray(JSValue* prototype, unsigned initialLength) 85 75 : JSObject(prototype) 86 76 {
Note:
See TracChangeset
for help on using the changeset viewer.