Changeset 16200 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Sep 3, 2006, 12:08:07 PM (19 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_instance.h
r15468 r16200 48 48 49 49 unsigned getLength() const { return length; } 50 JSValue* getItem(unsigned) const; 50 51 51 52 void sort(ExecState *exec); -
trunk/JavaScriptCore/kjs/array_object.cpp
r15952 r16200 5 5 * Copyright (C) 2003 Apple Computer, Inc. 6 6 * Copyright (C) 2003 Peter Kelly ([email protected]) 7 * Copyright (C) 2006 Alexey Proskuryakov ([email protected]) 7 8 * 8 9 * This library is free software; you can redistribute it and/or … … 68 69 { 69 70 fastFree(storage); 71 } 72 73 JSValue* ArrayInstance::getItem(unsigned i) const 74 { 75 if (i >= length) 76 return jsUndefined(); 77 78 JSValue* val = (i < storageLength) ? 79 storage[i] : 80 getDirect(Identifier::from(i)); 81 82 return val ? val : jsUndefined(); 70 83 } 71 84
Note:
See TracChangeset
for help on using the changeset viewer.