Home | History | Annotate | Download | only in runtime

Lines Matching refs:thisObj

172     JSArray* thisObj = asArray(thisValue);
174 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
178 StringRecursionChecker checker(exec, thisObj);
193 if (isRealArray && thisObj->canGetIndex(k))
194 element = thisObj->getIndex(k);
196 element = thisObj->get(exec, k);
235 JSObject* thisObj = asArray(thisValue);
237 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
241 StringRecursionChecker checker(exec, thisObj);
250 JSValue element = thisObj->get(exec, k);
270 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
271 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
275 StringRecursionChecker checker(exec, thisObj);
286 if (isJSArray(&exec->globalData(), thisObj)) {
287 JSArray* array = asArray(thisObj);
327 JSValue element = thisObj->get(exec, k);
372 JSObject* thisObj = thisValue.toThisObject(exec);
373 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
379 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length));
382 result = thisObj->get(exec, length - 1);
383 thisObj->deleteProperty(exec, length - 1);
384 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length - 1));
399 JSObject* thisObj = thisValue.toThisObject(exec);
400 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
405 thisObj->put(exec, length + n, exec->argument(n));
407 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length));
413 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
414 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
421 JSValue obj2 = getProperty(exec, thisObj, lk1);
422 JSValue obj = getProperty(exec, thisObj, k);
425 thisObj->put(exec, k, obj2);
427 thisObj->deleteProperty(exec, k);
430 thisObj->put(exec, lk1, obj);
432 thisObj->deleteProperty(exec, lk1);
434 return JSValue::encode(thisObj);
439 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
442 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
447 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length));
450 result = thisObj->get(exec, 0);
451 if (isJSArray(&exec->globalData(), thisObj))
452 ((JSArray *)thisObj)->shiftCount(exec, 1);
455 if (JSValue obj = getProperty(exec, thisObj, k))
456 thisObj->put(exec, k - 1, obj);
458 thisObj->deleteProperty(exec, k - 1);
460 thisObj->deleteProperty(exec, length - 1);
462 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length - 1));
470 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
476 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
485 if (JSValue v = getProperty(exec, thisObj, k))
494 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
495 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
497 return JSValue::encode(thisObj);
503 if (thisObj->classInfo() == &JSArray::s_info) {
505 asArray(thisObj)->sortNumeric(exec, function, callType, callData);
507 asArray(thisObj)->sort(exec, function, callType, callData);
509 asArray(thisObj)->sort(exec);
510 return JSValue::encode(thisObj);
516 JSValue iObj = thisObj->get(exec, i);
522 JSValue jObj = thisObj->get(exec, j);
545 thisObj->put(exec, i, minObj);
546 thisObj->put(exec, themin, iObj);
549 return JSValue::encode(thisObj);
556 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
557 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
581 resObj->uncheckedSetIndex(globalData, k, getProperty(exec, thisObj, k + begin));
588 if ((!begin) && (isJSArray(&exec->globalData(), thisObj)))
589 ((JSArray *)thisObj)->shiftCount(exec, deleteCount - additionalArgs);
592 if (JSValue v = getProperty(exec, thisObj, k + deleteCount))
593 thisObj->put(exec, k + additionalArgs, v);
595 thisObj->deleteProperty(exec, k + additionalArgs);
598 thisObj->deleteProperty(exec, k - 1);
601 if ((!begin) && (isJSArray(&exec->globalData(), thisObj)))
602 ((JSArray *)thisObj)->unshiftCount(exec, additionalArgs - deleteCount);
605 if (JSValue obj = getProperty(exec, thisObj, k + deleteCount - 1))
606 thisObj->put(exec, k + additionalArgs - 1, obj);
608 thisObj->deleteProperty(exec, k + additionalArgs - 1);
614 thisObj->put(exec, k + begin, exec->argument(k + 2));
616 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length - deleteCount + additionalArgs));
624 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
625 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
631 if (isJSArray(&exec->globalData(), thisObj))
632 ((JSArray *)thisObj)->unshiftCount(exec, nrArgs);
635 if (JSValue v = getProperty(exec, thisObj, k - 1))
636 thisObj->put(exec, k + nrArgs - 1, v);
638 thisObj->deleteProperty(exec, k + nrArgs - 1);
643 thisObj->put(exec, k, exec->argument(k));
645 putProperty(exec, thisObj, exec->propertyNames().length, result);
651 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
652 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
667 if (callType == CallTypeJS && isJSArray(&exec->globalData(), thisObj)) {
669 JSArray* array = asArray(thisObj);
678 cachedCall.setArgument(2, thisObj);
688 PropertySlot slot(thisObj);
689 if (!thisObj->getPropertySlot(exec, k, slot))
699 eachArguments.append(thisObj);
710 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
711 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
725 if (callType == CallTypeJS && isJSArray(&exec->globalData(), thisObj)) {
727 JSArray* array = asArray(thisObj);
736 cachedCall.setArgument(2, thisObj);
742 PropertySlot slot(thisObj);
743 if (!thisObj->getPropertySlot(exec, k, slot))
753 eachArguments.append(thisObj);
772 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
773 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
788 if (callType == CallTypeJS && isJSArray(&exec->globalData(), thisObj)) {
790 JSArray* array = asArray(thisObj);
799 cachedCall.setArgument(2, thisObj);
806 PropertySlot slot(thisObj);
807 if (!thisObj->getPropertySlot(exec, k, slot))
813 eachArguments.append(thisObj);
830 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
831 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
844 if (callType == CallTypeJS && isJSArray(&exec->globalData(), thisObj)) {
846 JSArray* array = asArray(thisObj);
855 cachedCall.setArgument(2, thisObj);
861 PropertySlot slot(thisObj);
862 if (!thisObj->getPropertySlot(exec, k, slot))
868 eachArguments.append(thisObj);
880 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
881 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
896 if (callType == CallTypeJS && isJSArray(&exec->globalData(), thisObj)) {
898 JSArray* array = asArray(thisObj);
907 cachedCall.setArgument(2, thisObj);
914 PropertySlot slot(thisObj);
915 if (!thisObj->getPropertySlot(exec, k, slot))
921 eachArguments.append(thisObj);
937 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
938 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
954 if (isJSArray(&exec->globalData(), thisObj))
955 array = asArray(thisObj);
964 rv = getProperty(exec, thisObj, i);
993 JSValue prop = getProperty(exec, thisObj, i);
1003 eachArguments.append(thisObj);
1012 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
1013 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
1029 if (isJSArray(&exec->globalData(), thisObj))
1030 array = asArray(thisObj);
1039 rv = getProperty(exec, thisObj, length - i - 1);
1067 JSValue prop = getProperty(exec, thisObj, idx);
1077 eachArguments.append(thisObj);
1087 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
1088 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
1095 JSValue e = getProperty(exec, thisObj, index);
1108 JSObject* thisObj = exec->hostThisValue().toThisObject(exec);
1109 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
1129 JSValue e = getProperty(exec, thisObj, index);