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