Changeset 3018 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Dec 12, 2002, 2:38:17 AM (22 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_instance.h
r3015 r3018 41 41 virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName); 42 42 virtual bool deleteProperty(ExecState *exec, unsigned propertyName); 43 virtual ReferenceList propList(ExecState *exec, bool recursive); 43 44 44 45 virtual void mark(); -
trunk/JavaScriptCore/kjs/array_object.cpp
r3015 r3018 196 196 return ObjectImp::deleteProperty(exec, Identifier::from(index)); 197 197 } 198 199 ReferenceList ArrayInstanceImp::propList(ExecState *exec, bool recursive) 200 { 201 ReferenceList properties = ObjectImp::propList(exec,recursive); 202 203 // avoid fetching this every time through the loop 204 ValueImp *undefined = UndefinedImp::staticUndefined; 205 206 for (unsigned i = 0; i < storageLength; ++i) { 207 ValueImp *imp = storage[i]; 208 if (imp && imp != undefined) { 209 properties.append(Reference(this, i)); 210 } 211 } 212 return properties; 213 } 214 198 215 199 216 void ArrayInstanceImp::resizeStorage(unsigned newLength) -
trunk/JavaScriptCore/kjs/object.h
r3015 r3018 573 573 void setScope(const ScopeChain &s) { _scope = s; } 574 574 575 ReferenceList propList(ExecState *exec, bool recursive = true);575 virtual ReferenceList propList(ExecState *exec, bool recursive = true); 576 576 577 577 Value internalValue() const;
Note:
See TracChangeset
for help on using the changeset viewer.