• Home
  • Raw
  • Download

Lines Matching refs:meth

180     Method* meth);
188 static void freeMethodInnards(Method* meth);
2101 static void freeMethodInnards(Method* meth) in freeMethodInnards() argument
2104 free(meth->exceptions); in freeMethodInnards()
2105 free(meth->lines); in freeMethodInnards()
2106 free(meth->locals); in freeMethodInnards()
2113 const RegisterMap* pMap = meth->registerMap; in freeMethodInnards()
2116 meth->registerMap = NULL; in freeMethodInnards()
2122 if (IS_METHOD_FLAG_SET(meth, METHOD_ISWRITABLE)) { in freeMethodInnards()
2123 DexCode* methodDexCode = (DexCode*) dvmGetMethodCode(meth); in freeMethodInnards()
2124 dvmLinearFree(meth->clazz->classLoader, methodDexCode); in freeMethodInnards()
2149 Method* meth) in loadMethodFromDex() argument
2157 meth->name = dexStringById(pDexFile, pMethodId->nameIdx); in loadMethodFromDex()
2158 dexProtoSetFromMethodId(&meth->prototype, pDexFile, pMethodId); in loadMethodFromDex()
2159 meth->shorty = dexProtoGetShorty(&meth->prototype); in loadMethodFromDex()
2160 meth->accessFlags = pDexMethod->accessFlags; in loadMethodFromDex()
2161 meth->clazz = clazz; in loadMethodFromDex()
2162 meth->jniArgInfo = 0; in loadMethodFromDex()
2164 if (dvmCompareNameDescriptorAndMethod("finalize", "()V", meth) == 0) { in loadMethodFromDex()
2184 meth->registersSize = pDexCode->registersSize; in loadMethodFromDex()
2185 meth->insSize = pDexCode->insSize; in loadMethodFromDex()
2186 meth->outsSize = pDexCode->outsSize; in loadMethodFromDex()
2189 meth->insns = pDexCode->insns; in loadMethodFromDex()
2200 int argsSize = dvmComputeMethodArgsSize(meth); in loadMethodFromDex()
2201 if (!dvmIsStaticMethod(meth)) in loadMethodFromDex()
2203 meth->registersSize = meth->insSize = argsSize; in loadMethodFromDex()
2204 assert(meth->outsSize == 0); in loadMethodFromDex()
2205 assert(meth->insns == NULL); in loadMethodFromDex()
2207 if (dvmIsNativeMethod(meth)) { in loadMethodFromDex()
2208 meth->nativeFunc = dvmResolveNativeMethod; in loadMethodFromDex()
2209 meth->jniArgInfo = computeJniArgInfo(&meth->prototype); in loadMethodFromDex()
2227 void dvmMakeCodeReadWrite(Method* meth)
2229 DexCode* methodDexCode = (DexCode*) dvmGetMethodCode(meth);
2231 if (IS_METHOD_FLAG_SET(meth, METHOD_ISWRITABLE)) {
2232 dvmLinearReadWrite(meth->clazz->classLoader, methodDexCode);
2236 assert(!dvmIsNativeMethod(meth) && !dvmIsAbstractMethod(meth));
2240 meth->clazz->descriptor, meth->name, dexCodeSize);
2243 (DexCode*) dvmLinearAlloc(meth->clazz->classLoader, dexCodeSize);
2246 meth->insns = newCode->insns;
2247 SET_METHOD_FLAG(meth, METHOD_ISWRITABLE);
2256 void dvmMakeCodeReadOnly(Method* meth)
2258 DexCode* methodDexCode = (DexCode*) dvmGetMethodCode(meth);
2260 dvmLinearReadOnly(meth->clazz->classLoader, methodDexCode);
3317 Method* meth; in createIftable() local
3369 Method* meth = newVirtualMethods; in createIftable() local
3370 for (int i = 0; i < clazz->virtualMethodCount; i++, meth++) in createIftable()
3371 clazz->vtable[meth->methodIndex] = meth; in createIftable()
3405 meth = clazz->virtualMethods + oldMethodCount; in createIftable()
3406 for (int i = 0; i < mirandaCount; i++, meth++) { in createIftable()
3408 cloneMethod(meth, mirandaList[i]); in createIftable()
3409 meth->clazz = clazz; in createIftable()
3410 meth->accessFlags |= ACC_MIRANDA; in createIftable()
3411 meth->methodIndex = (u2) (oldVtableCount + i); in createIftable()
3415 clazz->vtable[oldVtableCount + i] = meth; in createIftable()
3485 Method* meth; in insertMethodStubs() local
3488 meth = clazz->virtualMethods; in insertMethodStubs()
3489 for (i = 0; i < clazz->virtualMethodCount; i++, meth++) { in insertMethodStubs()
3490 if (dvmIsAbstractMethod(meth)) { in insertMethodStubs()
3491 assert(meth->insns == NULL); in insertMethodStubs()
3492 assert(meth->nativeFunc == NULL || in insertMethodStubs()
3493 meth->nativeFunc == (DalvikBridgeFunc)dvmAbstractMethodStub); in insertMethodStubs()
3495 meth->accessFlags |= ACC_NATIVE; in insertMethodStubs()
3496 meth->nativeFunc = (DalvikBridgeFunc) dvmAbstractMethodStub; in insertMethodStubs()
3995 static bool checkMethodDescriptorClasses(const Method* meth, in checkMethodDescriptorClasses() argument
4002 dexParameterIteratorInit(&iterator, &meth->prototype); in checkMethodDescriptorClasses()
4017 descriptor = dexProtoGetReturnType(&meth->prototype); in checkMethodDescriptorClasses()
4086 const Method* meth; in validateSuperDescriptors() local
4092 meth = clazz->vtable[i]; in validateSuperDescriptors()
4093 if (meth != clazz->super->vtable[i] && in validateSuperDescriptors()
4094 !checkMethodDescriptorClasses(meth, clazz->super, clazz)) in validateSuperDescriptors()
4097 meth->name, clazz->descriptor, clazz->classLoader, in validateSuperDescriptors()
4122 const Method* meth; in validateSuperDescriptors() local
4126 meth = clazz->vtable[vtableIndex]; in validateSuperDescriptors()
4128 if (!checkMethodDescriptorClasses(meth, iface, meth->clazz)) { in validateSuperDescriptors()
4131 meth->name, clazz->descriptor, clazz->classLoader, in validateSuperDescriptors()