Changeset 29508 in webkit for trunk/JavaScriptCore/kjs/array_object.cpp
- Timestamp:
- Jan 15, 2008, 10:43:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.cpp
r29459 r29508 43 43 /* Source for array_object.lut.h 44 44 @begin arrayTable 16 45 toString &ArrayProtoFuncToString::createDontEnum|Function 046 toLocaleString &ArrayProtoFuncToLocaleString::createDontEnum|Function 047 concat &ArrayProtoFuncConcat::createDontEnum|Function 148 join &ArrayProtoFuncJoin::createDontEnum|Function 149 pop &ArrayProtoFuncPop::createDontEnum|Function 050 push &ArrayProtoFuncPush::createDontEnum|Function 151 reverse &ArrayProtoFuncReverse::create DontEnum|Function 052 shift &ArrayProtoFuncShift::createDontEnum|Function 053 slice &ArrayProtoFuncSlice::create DontEnum|Function 254 sort &ArrayProtoFuncSort::createDontEnum|Function 155 splice &ArrayProtoFuncSplice::create DontEnum|Function 256 unshift &ArrayProtoFuncUnShift::createDontEnum|Function 157 every &ArrayProtoFuncEvery::createDontEnum|Function 158 forEach &ArrayProtoFuncForEach::createDontEnum|Function 159 some &ArrayProtoFuncSome::create DontEnum|Function 160 indexOf &ArrayProtoFuncIndexOf::createDontEnum|Function 161 lastIndexOf &ArrayProtoFuncLastIndexOf::createDontEnum|Function 162 filter &ArrayProtoFuncFilter::createDontEnum|Function 163 map &ArrayProtoFuncMap::createDontEnum|Function 145 toString arrayProtoFuncToString DontEnum|Function 0 46 toLocaleString arrayProtoFuncToLocaleString DontEnum|Function 0 47 concat arrayProtoFuncConcat DontEnum|Function 1 48 join arrayProtoFuncJoin DontEnum|Function 1 49 pop arrayProtoFuncPop DontEnum|Function 0 50 push arrayProtoFuncPush DontEnum|Function 1 51 reverse arrayProtoFuncReverse DontEnum|Function 0 52 shift arrayProtoFuncShift DontEnum|Function 0 53 slice arrayProtoFuncSlice DontEnum|Function 2 54 sort arrayProtoFuncSort DontEnum|Function 1 55 splice arrayProtoFuncSplice DontEnum|Function 2 56 unshift arrayProtoFuncUnShift DontEnum|Function 1 57 every arrayProtoFuncEvery DontEnum|Function 1 58 forEach arrayProtoFuncForEach DontEnum|Function 1 59 some arrayProtoFuncSome DontEnum|Function 1 60 indexOf arrayProtoFuncIndexOf DontEnum|Function 1 61 lastIndexOf arrayProtoFuncLastIndexOf DontEnum|Function 1 62 filter arrayProtoFuncFilter DontEnum|Function 1 63 map arrayProtoFuncMap DontEnum|Function 1 64 64 @end 65 65 */ … … 88 88 } 89 89 90 JSValue* ArrayProtoFuncToString::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)90 JSValue* arrayProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&) 91 91 { 92 92 if (!thisObj->inherits(&ArrayInstance::info)) … … 130 130 } 131 131 132 JSValue* ArrayProtoFuncToLocaleString::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)132 JSValue* arrayProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List&) 133 133 { 134 134 if (!thisObj->inherits(&ArrayInstance::info)) … … 177 177 } 178 178 179 JSValue* ArrayProtoFuncJoin::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)179 JSValue* arrayProtoFuncJoin(ExecState* exec, JSObject* thisObj, const List& args) 180 180 { 181 181 static HashSet<JSObject*> visitedElems; … … 219 219 } 220 220 221 JSValue* ArrayProtoFuncConcat::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)221 JSValue* arrayProtoFuncConcat(ExecState* exec, JSObject* thisObj, const List& args) 222 222 { 223 223 JSObject* arr = static_cast<JSObject*>(exec->lexicalGlobalObject()->arrayConstructor()->construct(exec, exec->emptyList())); … … 254 254 } 255 255 256 JSValue* ArrayProtoFuncPop::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)256 JSValue* arrayProtoFuncPop(ExecState* exec, JSObject* thisObj, const List&) 257 257 { 258 258 JSValue* result = 0; … … 268 268 } 269 269 270 JSValue* ArrayProtoFuncPush::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)270 JSValue* arrayProtoFuncPush(ExecState* exec, JSObject* thisObj, const List& args) 271 271 { 272 272 unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec); … … 278 278 } 279 279 280 JSValue* ArrayProtoFuncReverse::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)280 JSValue* arrayProtoFuncReverse(ExecState* exec, JSObject* thisObj, const List&) 281 281 { 282 282 unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec); … … 301 301 } 302 302 303 JSValue* ArrayProtoFuncShift::callAsFunction(ExecState* exec, JSObject* thisObj, const List&)303 JSValue* arrayProtoFuncShift(ExecState* exec, JSObject* thisObj, const List&) 304 304 { 305 305 JSValue* result = 0; … … 323 323 } 324 324 325 JSValue* ArrayProtoFuncSlice::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)325 JSValue* arrayProtoFuncSlice(ExecState* exec, JSObject* thisObj, const List& args) 326 326 { 327 327 // http://developer.netscape.com/docs/manuals/js/client/jsref/array.htm#1193713 or 15.4.4.10 … … 366 366 } 367 367 368 JSValue* ArrayProtoFuncSort::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)368 JSValue* arrayProtoFuncSort(ExecState* exec, JSObject* thisObj, const List& args) 369 369 { 370 370 JSObject* sortFunction = 0; … … 425 425 } 426 426 427 JSValue* ArrayProtoFuncSplice::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)427 JSValue* arrayProtoFuncSplice(ExecState* exec, JSObject* thisObj, const List& args) 428 428 { 429 429 // 15.4.4.12 … … 478 478 } 479 479 480 JSValue* ArrayProtoFuncUnShift::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)480 JSValue* arrayProtoFuncUnShift(ExecState* exec, JSObject* thisObj, const List& args) 481 481 { 482 482 // 15.4.4.13 … … 496 496 } 497 497 498 JSValue* ArrayProtoFuncFilter::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)498 JSValue* arrayProtoFuncFilter(ExecState* exec, JSObject* thisObj, const List& args) 499 499 { 500 500 JSObject* eachFunction = args[0]->toObject(exec); … … 530 530 } 531 531 532 JSValue* ArrayProtoFuncMap::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)532 JSValue* arrayProtoFuncMap(ExecState* exec, JSObject* thisObj, const List& args) 533 533 { 534 534 JSObject* eachFunction = args[0]->toObject(exec); … … 569 569 // http://developer-test.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:some 570 570 571 JSValue* ArrayProtoFuncEvery::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)571 JSValue* arrayProtoFuncEvery(ExecState* exec, JSObject* thisObj, const List& args) 572 572 { 573 573 JSObject* eachFunction = args[0]->toObject(exec); … … 604 604 } 605 605 606 JSValue* ArrayProtoFuncForEach::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)606 JSValue* arrayProtoFuncForEach(ExecState* exec, JSObject* thisObj, const List& args) 607 607 { 608 608 JSObject* eachFunction = args[0]->toObject(exec); … … 629 629 } 630 630 631 JSValue* ArrayProtoFuncSome::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)631 JSValue* arrayProtoFuncSome(ExecState* exec, JSObject* thisObj, const List& args) 632 632 { 633 633 JSObject* eachFunction = args[0]->toObject(exec); … … 661 661 } 662 662 663 JSValue* ArrayProtoFuncIndexOf::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)663 JSValue* arrayProtoFuncIndexOf(ExecState* exec, JSObject* thisObj, const List& args) 664 664 { 665 665 // JavaScript 1.5 Extension by Mozilla … … 690 690 } 691 691 692 JSValue* ArrayProtoFuncLastIndexOf::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)692 JSValue* arrayProtoFuncLastIndexOf(ExecState* exec, JSObject* thisObj, const List& args) 693 693 { 694 694 // JavaScript 1.6 Extension by Mozilla
Note:
See TracChangeset
for help on using the changeset viewer.