Lines Matching refs:newClass
107 ClassObject* newClass =
109 if (newClass == NULL)
111 DVM_OBJECT_INIT(newClass, gDvm.classJavaLangClass);
112 dvmSetClassSerialNumber(newClass);
113 newClass->descriptorAlloc = dvmNameToDescriptor(nameStr);
114 newClass->descriptor = newClass->descriptorAlloc;
115 SET_CLASS_FLAG(newClass, ACC_PUBLIC | ACC_FINAL);
116 dvmSetFieldObject((Object *)newClass,
119 newClass->primitiveType = PRIM_NOT;
120 dvmSetFieldObject((Object *)newClass,
127 newClass->directMethodCount = 1;
128 newClass->directMethods = (Method*) dvmLinearAlloc(newClass->classLoader,
130 createConstructor(newClass, &newClass->directMethods[0]);
131 dvmLinearReadOnly(newClass->classLoader, newClass->directMethods);
145 newClass->virtualMethodCount = methodCount;
147 newClass->virtualMethods =
148 (Method*)dvmLinearAlloc(newClass->classLoader, virtualMethodsSize);
149 for (int i = 0; i < newClass->virtualMethodCount; i++) {
150 createHandlerMethod(newClass, &newClass->virtualMethods[i], methods[i]);
153 dvmLinearReadOnly(newClass->classLoader, newClass->virtualMethods);
162 newClass->interfaceCount = interfaceCount;
164 newClass->interfaces =
165 (ClassObject**)dvmLinearAlloc(newClass->classLoader, interfacesSize);
167 newClass->interfaces[i] = ifArray[i];
168 dvmLinearReadOnly(newClass->classLoader, newClass->interfaces);
176 newClass->sfieldCount = kProxySFieldCount;
178 StaticField* sfield = &newClass->sfields[kThrowsField];
179 sfield->clazz = newClass;
191 newClass->status = CLASS_LOADED;
192 if (!dvmLinkClass(newClass)) {
202 if (!dvmAddClassToHash(newClass)) {
204 newClass->descriptor);
208 result = newClass;
214 dvmFreeClassInnards(newClass);
223 dvmReleaseTrackedAlloc((Object*) newClass, NULL);