Changeset 6347 in webkit for trunk/JavaScriptCore/kjs/array_object.cpp
- Timestamp:
- Apr 9, 2004, 1:07:47 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.cpp
r6028 r6347 304 304 : exec(e) 305 305 , compareFunction(cf) 306 , globalObject(e-> interpreter()->globalObject())306 , globalObject(e->dynamicInterpreter()->globalObject()) 307 307 { 308 308 arguments.append(Undefined()); … … 426 426 ArrayProtoFuncImp::ArrayProtoFuncImp(ExecState *exec, int i, int len) 427 427 : InternalFunctionImp( 428 static_cast<FunctionPrototypeImp*>(exec-> interpreter()->builtinFunctionPrototype().imp())428 static_cast<FunctionPrototypeImp*>(exec->lexicalInterpreter()->builtinFunctionPrototype().imp()) 429 429 ), id(i) 430 430 { … … 477 477 } 478 478 case Concat: { 479 Object arr = Object::dynamicCast(exec-> interpreter()->builtinArray().construct(exec,List::empty()));479 Object arr = Object::dynamicCast(exec->lexicalInterpreter()->builtinArray().construct(exec,List::empty())); 480 480 int n = 0; 481 481 Value curArg = thisObj; … … 579 579 580 580 // We return a new array 581 Object resObj = Object::dynamicCast(exec-> interpreter()->builtinArray().construct(exec,List::empty()));581 Object resObj = Object::dynamicCast(exec->lexicalInterpreter()->builtinArray().construct(exec,List::empty())); 582 582 result = resObj; 583 583 double begin = args[0].toInteger(exec); … … 665 665 l.append(jObj); 666 666 l.append(minObj); 667 cmp = sortFunction.call(exec, exec-> interpreter()->globalObject(), l).toNumber(exec);667 cmp = sortFunction.call(exec, exec->dynamicInterpreter()->globalObject(), l).toNumber(exec); 668 668 } else { 669 669 cmp = (jObj.toString(exec) < minObj.toString(exec)) ? -1 : 1; … … 693 693 case Splice: { 694 694 // 15.4.4.12 - oh boy this is huge 695 Object resObj = Object::dynamicCast(exec-> interpreter()->builtinArray().construct(exec,List::empty()));695 Object resObj = Object::dynamicCast(exec->lexicalInterpreter()->builtinArray().construct(exec,List::empty())); 696 696 result = resObj; 697 697 int begin = args[0].toUInt32(exec); … … 803 803 return error; 804 804 } 805 return Object(new ArrayInstanceImp(exec-> interpreter()->builtinArrayPrototype().imp(), n));805 return Object(new ArrayInstanceImp(exec->lexicalInterpreter()->builtinArrayPrototype().imp(), n)); 806 806 } 807 807 808 808 // otherwise the array is constructed with the arguments in it 809 return Object(new ArrayInstanceImp(exec-> interpreter()->builtinArrayPrototype().imp(), args));809 return Object(new ArrayInstanceImp(exec->lexicalInterpreter()->builtinArrayPrototype().imp(), args)); 810 810 } 811 811
Note:
See TracChangeset
for help on using the changeset viewer.