Home | History | Annotate | Download | only in oo

Lines Matching defs:arrayClass

38 static ArrayObject* allocArray(ClassObject* arrayClass, size_t length,
41 assert(arrayClass != NULL);
42 assert(arrayClass->descriptor != NULL);
43 assert(arrayClass->descriptor[0] == '[');
53 std::string descriptor(dvmHumanReadableDescriptor(arrayClass->descriptor));
60 DVM_OBJECT_INIT(newArray, arrayClass);
62 dvmTrackAllocation(arrayClass, totalSize);
71 ArrayObject* dvmAllocArrayByClass(ClassObject* arrayClass,
74 const char* descriptor = arrayClass->descriptor;
82 return allocArray(arrayClass, length, kObjectArrayRefWidth,
93 ClassObject* arrayClass;
103 arrayClass = dvmFindArrayClass(className, elemClassObj->classLoader);
105 return arrayClass;
116 ClassObject* arrayClass;
121 arrayClass = gDvm.classArrayInt;
125 arrayClass = gDvm.classArrayChar;
129 arrayClass = gDvm.classArrayByte;
133 arrayClass = gDvm.classArrayBoolean;
137 arrayClass = gDvm.classArrayFloat;
141 arrayClass = gDvm.classArrayDouble;
145 arrayClass = gDvm.classArrayShort;
149 arrayClass = gDvm.classArrayLong;
158 newArray = allocArray(arrayClass, length, width, allocFlags);
171 ArrayObject* dvmAllocMultiArray(ClassObject* arrayClass, int curDim,
175 const char* elemName = arrayClass->descriptor + 1; // Advance past one '['.
178 arrayClass->descriptor, curDim, *dimensions);
183 arrayClass->descriptor);
184 newArray = allocArray(arrayClass, *dimensions,
188 arrayClass->descriptor);
190 dexGetPrimitiveTypeDescriptorChar(arrayClass->elementClass->primitiveType),
198 subArrayClass = dvmFindArrayClass(elemName, arrayClass->classLoader);
207 newArray = allocArray(arrayClass, *dimensions, kObjectArrayRefWidth,
596 size_t dvmArrayClassElementWidth(const ClassObject* arrayClass)
600 assert(dvmIsArrayClass(arrayClass));
602 if (dvmIsObjectArrayClass(arrayClass)) {
605 descriptor = arrayClass->descriptor;
617 LOGE("class %p has an unhandled descriptor '%s'", arrayClass, descriptor);