/dalvik/vm/analysis/ |
D | DexVerify.c | 26 static bool verifyMethod(Method* meth, int verifyFlags); 27 static bool verifyInstructions(const Method* meth, InsnFlags* insnFlags, 174 static bool verifyMethod(Method* meth, int verifyFlags) in verifyMethod() argument 186 if (dvmGetMethodInsnsSize(meth) == 0) { in verifyMethod() 187 if (!dvmIsNativeMethod(meth) && !dvmIsAbstractMethod(meth)) { in verifyMethod() 188 LOG_VFY_METH(meth, in verifyMethod() 200 if (meth->insSize > meth->registersSize) { in verifyMethod() 201 LOG_VFY_METH(meth, "VFY: bad register counts (ins=%d regs=%d)\n", in verifyMethod() 202 meth->insSize, meth->registersSize); in verifyMethod() 213 calloc(dvmGetMethodInsnsSize(meth), sizeof(InsnFlags)); in verifyMethod() [all …]
|
D | VerifySubs.c | 37 bool dvmComputeCodeWidths(const Method* meth, InsnFlags* insnFlags, in dvmComputeCodeWidths() argument 40 const int insnCount = dvmGetMethodInsnsSize(meth); in dvmComputeCodeWidths() 41 const u2* insns = meth->insns; in dvmComputeCodeWidths() 66 LOG_VFY_METH(meth, in dvmComputeCodeWidths() 82 LOG_VFY_METH(meth, "VFY: insane width %d\n", width); in dvmComputeCodeWidths() 90 if (i != (int) dvmGetMethodInsnsSize(meth)) { in dvmComputeCodeWidths() 91 LOG_VFY_METH(meth, "VFY: code did not end where expected (%d vs. %d)\n", in dvmComputeCodeWidths() 92 i, dvmGetMethodInsnsSize(meth)); in dvmComputeCodeWidths() 113 bool dvmSetTryFlags(const Method* meth, InsnFlags* insnFlags) in dvmSetTryFlags() argument 115 u4 insnsSize = dvmGetMethodInsnsSize(meth); in dvmSetTryFlags() [all …]
|
D | VerifySubs.h | 41 bool dvmComputeCodeWidths(const Method* meth, InsnFlags* insnFlags, 45 bool dvmSetTryFlags(const Method* meth, InsnFlags* insnFlags); 48 bool dvmCheckSwitchTargets(const Method* meth, InsnFlags* insnFlags, 52 bool dvmCheckBranchTarget(const Method* meth, InsnFlags* insnFlags, 60 void dvmLogVerifyFailure(const Method* meth, const char* format, ...) 68 const Method* meth); 71 bool dvmGetBranchTarget(const Method* meth, InsnFlags* insnFlags,
|
D | CodeVerify.c | 72 static inline bool doVerboseLogging(const Method* meth) { in doVerboseLogging() argument 78 return (strcmp(meth->clazz->descriptor, cd) == 0 && in doVerboseLogging() 79 dvmCompareNameDescriptorAndMethod(mn, sg, meth) == 0); in doVerboseLogging() 117 static bool isInitMethod(const Method* meth); 123 static bool doCodeVerification(Method* meth, InsnFlags* insnFlags,\ 125 static bool verifyInstruction(Method* meth, InsnFlags* insnFlags,\ 129 static void dumpRegTypes(const Method* meth, const InsnFlags* insnFlags,\ 366 UninitInstanceMap* dvmCreateUninitInstanceMap(const Method* meth, in dvmCreateUninitInstanceMap() argument 369 const int insnsSize = dvmGetMethodInsnsSize(meth); in dvmCreateUninitInstanceMap() 370 const u2* insns = meth->insns; in dvmCreateUninitInstanceMap() [all …]
|
D | RegisterMap.c | 46 const Method* meth); 607 static bool writeMapForMethod(const Method* meth, u1** pPtr) in writeMapForMethod() argument 609 if (meth->registerMap == NULL) { in writeMapForMethod() 610 if (!dvmIsAbstractMethod(meth) && !dvmIsNativeMethod(meth)) { in writeMapForMethod() 612 meth->clazz->descriptor, meth->name); in writeMapForMethod() 620 size_t mapSize = computeRegisterMapSize(meth->registerMap); in writeMapForMethod() 621 memcpy(*pPtr, meth->registerMap, mapSize); in writeMapForMethod() 624 assert(**pPtr == meth->registerMap->format); in writeMapForMethod() 668 const Method* meth = &clazz->directMethods[i]; in writeMapsAllMethods() local 669 if (dvmIsMirandaMethod(meth)) in writeMapsAllMethods() [all …]
|
/dalvik/vm/native/ |
D | java_lang_reflect_Method.c | 36 Method* meth; in Dalvik_java_lang_reflect_Method_getMethodModifiers() local 38 meth = dvmSlotToMethod(declaringClass, slot); in Dalvik_java_lang_reflect_Method_getMethodModifiers() 39 RETURN_INT(dvmFixMethodFlags(meth->accessFlags)); in Dalvik_java_lang_reflect_Method_getMethodModifiers() 59 const Method* meth; in Dalvik_java_lang_reflect_Method_invokeNative() local 66 meth = dvmSlotToMethod(declaringClass, slot); in Dalvik_java_lang_reflect_Method_invokeNative() 67 assert(meth != NULL); in Dalvik_java_lang_reflect_Method_invokeNative() 69 if (dvmIsStaticMethod(meth)) { in Dalvik_java_lang_reflect_Method_invokeNative() 90 meth = dvmGetVirtualizedMethod(methObj->clazz, meth); in Dalvik_java_lang_reflect_Method_invokeNative() 91 if (meth == NULL) { in Dalvik_java_lang_reflect_Method_invokeNative() 101 result = dvmInvokeMethod(methObj, meth, argList, params, returnType, in Dalvik_java_lang_reflect_Method_invokeNative() [all …]
|
D | java_lang_reflect_Constructor.c | 33 Method* meth; in Dalvik_java_lang_reflect_Constructor_getConstructorModifiers() local 35 meth = dvmSlotToMethod(declaringClass, slot); in Dalvik_java_lang_reflect_Constructor_getConstructorModifiers() 36 RETURN_INT(dvmFixMethodFlags(meth->accessFlags)); in Dalvik_java_lang_reflect_Constructor_getConstructorModifiers() 59 Method* meth; in Dalvik_java_lang_reflect_Constructor_constructNative() local 81 meth = dvmSlotToMethod(declaringClass, slot); in Dalvik_java_lang_reflect_Constructor_constructNative() 82 assert(meth != NULL); in Dalvik_java_lang_reflect_Constructor_constructNative() 84 (void) dvmInvokeMethod(newObj, meth, argList, params, NULL, noAccessCheck); in Dalvik_java_lang_reflect_Constructor_constructNative() 100 Method* meth; in Dalvik_java_lang_reflect_Constructor_getDeclaredAnnotations() local 102 meth = dvmSlotToMethod(declaringClass, slot); in Dalvik_java_lang_reflect_Constructor_getDeclaredAnnotations() 103 assert(meth != NULL); in Dalvik_java_lang_reflect_Constructor_getDeclaredAnnotations() [all …]
|
D | java_security_AccessController.c | 78 const Method* meth = methods[idx]; in Dalvik_java_security_AccessController_getStackDomains() local 81 if (dvmIsReflectionMethod(meth)) in Dalvik_java_security_AccessController_getStackDomains() 84 if (dvmIsPrivilegedMethod(meth)) { in Dalvik_java_security_AccessController_getStackDomains() 90 meth = methods[idx]; in Dalvik_java_security_AccessController_getStackDomains() 95 pd = dvmGetFieldObject((Object*) meth->clazz, in Dalvik_java_security_AccessController_getStackDomains()
|
D | dalvik_system_VMStack.c | 114 const Method* meth = methods[idx]; in Dalvik_dalvik_system_VMStack_getClasses() local 116 if (dvmIsReflectionMethod(meth)) in Dalvik_dalvik_system_VMStack_getClasses() 119 if (stopAtPrivileged && dvmIsPrivilegedMethod(meth)) { in Dalvik_dalvik_system_VMStack_getClasses() 157 const Method* meth = methods[idx]; in Dalvik_dalvik_system_VMStack_getClasses() local 159 if (dvmIsReflectionMethod(meth)) in Dalvik_dalvik_system_VMStack_getClasses() 162 *objects++ = meth->clazz; in Dalvik_dalvik_system_VMStack_getClasses()
|
/dalvik/vm/reflect/ |
D | Reflect.c | 467 static int methodToSlot(const Method* meth) in methodToSlot() argument 469 ClassObject* clazz = meth->clazz; in methodToSlot() 472 if (dvmIsDirectMethod(meth)) { in methodToSlot() 473 slot = meth - clazz->directMethods; in methodToSlot() 477 slot = meth - clazz->virtualMethods; in methodToSlot() 509 static Object* createConstructorObject(Method* meth) in createConstructorObject() argument 533 cp = dvmCopyDescriptorStringFromMethod(meth, &mangle); in createConstructorObject() 534 params = convertSignatureToClassArray(&cp, meth->clazz); in createConstructorObject() 544 exceptions = dvmGetMethodThrows(meth); in createConstructorObject() 548 slot = methodToSlot(meth); in createConstructorObject() [all …]
|
D | Proxy.c | 39 static void createConstructor(ClassObject* clazz, Method* meth); 87 Method* meth; in dvmReflectProxyStartup() local 93 meth = dvmFindDirectMethodByDescriptor(proxyClass, "constructorPrototype", in dvmReflectProxyStartup() 95 if (meth == NULL) { in dvmReflectProxyStartup() 99 gDvm.methJavaLangReflectProxy_constructorPrototype = meth; in dvmReflectProxyStartup() 789 static void createConstructor(ClassObject* clazz, Method* meth) in createConstructor() argument 791 meth->clazz = clazz; in createConstructor() 792 meth->accessFlags = ACC_PUBLIC | ACC_NATIVE; in createConstructor() 793 meth->name = "<init>"; in createConstructor() 794 meth->prototype = in createConstructor() [all …]
|
/dalvik/tests/046-reflect/src/ |
D | Main.java | 11 void printMethodInfo(Method meth) { in printMethodInfo() argument 15 System.out.println("Method name is " + meth.getName()); in printMethodInfo() 17 + meth.getDeclaringClass().getName()); in printMethodInfo() 18 params = meth.getParameterTypes(); in printMethodInfo() 21 exceptions = meth.getExceptionTypes(); in printMethodInfo() 24 System.out.println(" Return type is " + meth.getReturnType().getName()); in printMethodInfo() 26 + Integer.toHexString(meth.getModifiers())); in printMethodInfo() 60 Method meth = null; in run() local 65 meth = target.getMethod("myMethod", new Class[] { int.class }); in run() 67 if (meth.getDeclaringClass() != target) in run() [all …]
|
/dalvik/tests/075-verification-error/ |
D | expected.txt | 10 Got expected IllegalAccessError (meth-class) 12 Got expected IllegalAccessError (meth-meth)
|
/dalvik/tests/032-concrete-sub/src/ |
D | ConcreteSub.java | 41 Method meth; in main() local 46 meth = absClass.getMethod("redefineMe", (Class[]) null); in main() 51 System.out.println("meth modifiers=" + meth.getModifiers()); in main()
|
/dalvik/dx/src/com/android/dx/ssa/ |
D | Dominators.java | 48 private final SsaMethod meth; field in Dominators 68 private Dominators(SsaMethod meth, DomFront.DomInfo[] domInfos, in Dominators() argument 70 this.meth = meth; in Dominators() 73 this.blocks = meth.getBlocks(); in Dominators() 86 public static Dominators make(SsaMethod meth, DomFront.DomInfo[] domInfos, in make() argument 88 Dominators result = new Dominators(meth, domInfos, postdom); in make() 172 ? meth.getExitBlock() : meth.getEntryBlock(); in run() 185 meth.forEachBlockDepthFirst(postdom, walker); in run()
|
D | DomFront.java | 37 private final SsaMethod meth; field in DomFront 62 public DomFront(SsaMethod meth) { in DomFront() argument 63 this.meth = meth; in DomFront() 64 nodes = meth.getBlocks(); in DomFront() 90 Dominators methDom = Dominators.make(meth, domInfos, false); in run()
|
/dalvik/vm/ |
D | Profile.c | 277 Method* meth; in dumpMarkedMethods() local 284 meth = &clazz->virtualMethods[i]; in dumpMarkedMethods() 285 if (meth->inProfile) { in dumpMarkedMethods() 286 name = dvmDescriptorToName(meth->clazz->descriptor); in dumpMarkedMethods() 287 fprintf(fp, "0x%08x\t%s\t%s\t%s\t%s\t%d\n", (int) meth, in dumpMarkedMethods() 288 name, meth->name, in dumpMarkedMethods() 289 dexProtoGetMethodDescriptor(&meth->prototype, &stringCache), in dumpMarkedMethods() 290 dvmGetMethodSourceFile(meth), dvmLineNumFromPC(meth, 0)); in dumpMarkedMethods() 291 meth->inProfile = false; in dumpMarkedMethods() 297 meth = &clazz->directMethods[i]; in dumpMarkedMethods() [all …]
|
D | Exception.c | 135 Method* meth; in dvmExceptionStartup() local 136 meth = dvmFindDirectMethodByDescriptor(gDvm.classJavaLangStackTraceElement, in dvmExceptionStartup() 138 if (meth == NULL) { in dvmExceptionStartup() 142 gDvm.methJavaLangStackTraceElement_init = meth; in dvmExceptionStartup() 1095 Method* meth; in dvmGetStackTraceRaw() local 1107 meth = (Method*) *intVals++; in dvmGetStackTraceRaw() 1113 lineNumber = dvmLineNumFromPC(meth, pc); in dvmGetStackTraceRaw() 1115 dotName = dvmDescriptorToDot(meth->clazz->descriptor); in dvmGetStackTraceRaw() 1119 methodName = dvmCreateStringFromCstr(meth->name, ALLOC_DEFAULT); in dvmGetStackTraceRaw() 1120 sourceFile = dvmGetMethodSourceFile(meth); in dvmGetStackTraceRaw() [all …]
|
D | Jni.c | 325 Method* meth; in dvmJniStartup() local 355 meth = dvmFindVirtualMethodByDescriptor( in dvmJniStartup() 359 if (meth == NULL) { in dvmJniStartup() 363 gDvm.methOrgApacheHarmonyNioInternalDirectBuffer_getEffectiveAddress = meth; in dvmJniStartup() 365 meth = dvmFindVirtualMethodByDescriptor(platformAddressClass, in dvmJniStartup() 367 if (meth == NULL) { in dvmJniStartup() 372 meth->methodIndex; in dvmJniStartup() 374 meth = dvmFindDirectMethodByDescriptor(platformAddressFactoryClass, in dvmJniStartup() 377 if (meth == NULL) { in dvmJniStartup() 381 gDvm.methOrgApacheHarmonyLuniPlatformPlatformAddress_on = meth; in dvmJniStartup() [all …]
|
/dalvik/vm/oo/ |
D | Class.c | 177 Method* meth); 183 static void freeMethodInnards(Method* meth); 2018 static void freeMethodInnards(Method* meth) in freeMethodInnards() argument 2021 free(meth->exceptions); in freeMethodInnards() 2022 free(meth->lines); in freeMethodInnards() 2023 free(meth->locals); in freeMethodInnards() 2030 const RegisterMap* pMap = meth->registerMap; in freeMethodInnards() 2033 meth->registerMap = NULL; in freeMethodInnards() 2039 if (IS_METHOD_FLAG_SET(meth, METHOD_ISWRITABLE)) { in freeMethodInnards() 2040 DexCode* methodDexCode = (DexCode*) dvmGetMethodCode(meth); in freeMethodInnards() [all …]
|
D | Object.c | 625 const Method* meth) in dvmGetVirtualizedMethod() argument 630 assert(!dvmIsStaticMethod(meth)); in dvmGetVirtualizedMethod() 632 if (dvmIsPrivateMethod(meth)) // no vtable entry for these in dvmGetVirtualizedMethod() 633 return meth; in dvmGetVirtualizedMethod() 642 if (dvmIsInterfaceClass(meth->clazz)) { in dvmGetVirtualizedMethod() 646 if (clazz->iftable[i].clazz == meth->clazz) in dvmGetVirtualizedMethod() 655 methodIndex = clazz->iftable[i].methodIndexArray[meth->methodIndex]; in dvmGetVirtualizedMethod() 657 methodIndex = meth->methodIndex; in dvmGetVirtualizedMethod() 678 const char* dvmGetMethodSourceFile(const Method* meth) in dvmGetMethodSourceFile() argument 685 return meth->clazz->sourceFile; in dvmGetMethodSourceFile()
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | MethodListParser.java | 80 StdMethod meth = in set() local 83 methods.set(n, meth); in set() 84 return meth; in set()
|
/dalvik/dx/src/com/android/dx/command/dump/ |
D | BlockDumper.java | 193 ConcreteMethod meth = new ConcreteMethod((Method) member, classFile, in endParsingMember() local 197 ropDump(meth); in endParsingMember() 199 regularDump(meth); in endParsingMember() 208 private void regularDump(ConcreteMethod meth) { in regularDump() argument 209 BytecodeArray code = meth.getCode(); in regularDump() 211 ByteBlockList list = BasicBlocker.identifyBlocks(meth); in regularDump() 283 private void ropDump(ConcreteMethod meth) { in ropDump() argument 284 BytecodeArray code = meth.getCode(); in ropDump() 290 Ropper.convert(meth, advice); in ropDump() 294 boolean isStatic = AccessFlags.isStatic(meth.getAccessFlags()); in ropDump() [all …]
|
/dalvik/tests/068-classloader/src/ |
D | FancyLoader.java | 111 Method meth; in findClassDalvik() local 114 meth = mDexClass.getMethod("loadClass", in findClassDalvik() 121 meth.invoke(mDexFile, name, this); in findClassDalvik()
|
/dalvik/dx/src/com/android/dx/dex/cf/ |
D | CfTranslator.java | 229 CstMethodRef meth = new CstMethodRef(thisClass, one.getNat()); in processMethods() local 235 boolean isConstructor = meth.isInstanceInit() || in processMethods() 236 meth.isClassInit(); in processMethods() 256 paramSize = meth.getParameterWordCount(isStatic); in processMethods() 317 new EncodedMethod(meth, accessFlags, code, exceptions); in processMethods() 319 if (meth.isInstanceInit() || meth.isClassInit() || in processMethods() 329 out.addMethodAnnotations(meth, annotations); in processMethods() 335 out.addParameterAnnotations(meth, list); in processMethods()
|