Lines Matching refs:arrayObj
470 ArrayObject* arrayObj = (ArrayObject*) obj;
471 if (arrayObj->length == 8192 /*&&
475 arrayObj, arrayObj->length);
559 static void pinPrimitiveArray(ArrayObject* arrayObj) {
560 if (arrayObj == NULL) {
566 if (!dvmAddToReferenceTable(&gDvm.jniPinRefTable, (Object*)arrayObj)) {
582 if (*ppObj++ == (Object*) arrayObj) {
589 arrayObj, arrayObj->clazz->descriptor, count);
598 static void unpinPrimitiveArray(ArrayObject* arrayObj) {
599 if (arrayObj == NULL) {
605 gDvm.jniPinRefTable.table, (Object*) arrayObj))
608 arrayObj, dvmIsHeapAddress((Object*) arrayObj));
2271 static bool checkArrayElementBounds(ArrayObject* arrayObj, jsize index) {
2272 assert(arrayObj != NULL);
2273 if (index < 0 || index >= (int) arrayObj->length) {
2274 dvmThrowArrayIndexOutOfBoundsException(arrayObj->length, index);
2288 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr);
2289 if (!checkArrayElementBounds(arrayObj, index)) {
2293 Object* value = ((Object**) (void*) arrayObj->contents)[index];
2303 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr);
2304 if (!checkArrayElementBounds(arrayObj, index)) {
2310 if (obj != NULL && !dvmCanPutArrayElement(obj->clazz, arrayObj->clazz)) {
2313 arrayObj->clazz->descriptor, arrayObj);
2314 dvmThrowArrayStoreExceptionIncompatibleElement(obj->clazz, arrayObj->clazz);
2320 dvmSetObjectArrayElement(arrayObj, index, obj);
2329 ArrayObject* arrayObj = dvmAllocPrimitiveArray(_typechar, length, ALLOC_DEFAULT); \
2330 if (arrayObj == NULL) { \
2333 _artype result = (_artype) addLocalReference(ts.self(), (Object*) arrayObj); \
2334 dvmReleaseTrackedAlloc((Object*) arrayObj, NULL); \
2360 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); \
2361 pinPrimitiveArray(arrayObj); \
2362 _ctype* data = (_ctype*) (void*) arrayObj->contents; \
2383 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); \
2384 unpinPrimitiveArray(arrayObj); \
2388 static void throwArrayRegionOutOfBounds(ArrayObject* arrayObj, jsize start,
2393 arrayObj->clazz->descriptor, start, len, arrayIdentifier,
2394 arrayObj->length);
2405 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); \
2406 _ctype* data = (_ctype*) (void*) arrayObj->contents; \
2407 if (start < 0 || len < 0 || start + len > (int) arrayObj->length) { \
2408 throwArrayRegionOutOfBounds(arrayObj, start, len, "src"); \
2422 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); \
2423 _ctype* data = (_ctype*) (void*) arrayObj->contents; \
2424 if (start < 0 || len < 0 || start + len > (int) arrayObj->length) { \
2425 throwArrayRegionOutOfBounds(arrayObj, start, len, "dst"); \
2600 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr);
2601 pinPrimitiveArray(arrayObj);
2602 void* data = arrayObj->contents;
2615 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr);
2616 unpinPrimitiveArray(arrayObj);