Changeset 2783 in webkit for trunk/JavaScriptCore/kjs/array_object.cpp
- Timestamp:
- Nov 20, 2002, 1:12:14 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.cpp
r2777 r2783 40 40 const ClassInfo ArrayInstanceImp::info = {"Array", 0, 0, 0}; 41 41 42 ArrayInstanceImp::ArrayInstanceImp( const Object &proto, unsigned initialLength)42 ArrayInstanceImp::ArrayInstanceImp(ObjectImp *proto, unsigned initialLength) 43 43 : ObjectImp(proto) 44 44 , length(initialLength) … … 48 48 } 49 49 50 ArrayInstanceImp::ArrayInstanceImp( const Object &proto, const List &list)50 ArrayInstanceImp::ArrayInstanceImp(ObjectImp *proto, const List &list) 51 51 : ObjectImp(proto) 52 52 , length(list.size()) … … 290 290 ArrayPrototypeImp::ArrayPrototypeImp(ExecState *exec, 291 291 ObjectPrototypeImp *objProto) 292 : ArrayInstanceImp( Object(objProto), 0)292 : ArrayInstanceImp(objProto, 0) 293 293 { 294 294 Value protect(this); … … 665 665 // a single numeric argument denotes the array size (!) 666 666 if (args.size() == 1 && args[0].type() == NumberType) 667 return Object(new ArrayInstanceImp(exec->interpreter()->builtinArrayPrototype() , args[0].toUInt32(exec)));667 return Object(new ArrayInstanceImp(exec->interpreter()->builtinArrayPrototype().imp(), args[0].toUInt32(exec))); 668 668 669 669 // otherwise the array is constructed with the arguments in it 670 return Object(new ArrayInstanceImp(exec->interpreter()->builtinArrayPrototype() , args));670 return Object(new ArrayInstanceImp(exec->interpreter()->builtinArrayPrototype().imp(), args)); 671 671 } 672 672 … … 682 682 return construct(exec,args); 683 683 } 684
Note:
See TracChangeset
for help on using the changeset viewer.