Searched refs:meth (Results 1 - 25 of 67) sorted by relevance

123

/dalvik/vm/analysis/
H A DVerifySubs.cpp29 bool dvmWantVerboseVerification(const Method* meth) argument
36 return (strcmp(meth->clazz->descriptor, cd) == 0 &&
37 dvmCompareNameDescriptorAndMethod(mn, sg, meth) == 0);
45 void dvmLogVerifyFailure(const Method* meth, const char* format, ...) argument
59 if (meth != NULL) {
60 char* desc = dexProtoCopyMethodDescriptor(&meth->prototype);
62 meth->clazz->descriptor, meth->name, desc);
75 const Method* meth)
82 std::string dotFromClass = dvmHumanReadableDescriptor(meth
74 dvmLogUnableToResolveClass(const char* missingClassDescr, const Method* meth) argument
92 dvmGetBranchOffset(const Method* meth, const InsnFlags* insnFlags, int curOffset, s4* pOffset, bool* pConditional) argument
[all...]
H A DVerifySubs.h43 bool dvmComputeCodeWidths(const Method* meth, InsnFlags* insnFlags,
47 bool dvmSetTryFlags(const Method* meth, InsnFlags* insnFlags);
54 void dvmLogVerifyFailure(const Method* meth, const char* format, ...)
62 const Method* meth);
65 bool dvmGetBranchOffset(const Method* meth, const InsnFlags* insnFlags,
72 bool dvmWantVerboseVerification(const Method* meth);
H A DDexVerify.cpp27 static bool verifyMethod(Method* meth);
85 const Method* meth = vdata->method; local
88 const u2* insns = meth->insns;
97 LOG_VFY_METH(meth, "VFY: invalid instruction (0x%04x)", *insns);
100 LOG_VFY_METH(meth,
115 LOG_VFY_METH(meth, "VFY: code did not end where expected (%d vs. %d)",
116 i, dvmGetMethodInsnsSize(meth));
137 static bool scanTryCatchBlocks(const Method* meth, InsnFlags* insnFlags) argument
139 u4 insnsSize = dvmGetMethodInsnsSize(meth);
140 const DexCode* pCode = dvmGetMethodCode(meth);
235 verifyMethod(Method* meth) argument
346 checkArrayData(const Method* meth, u4 curOffset) argument
515 checkRegisterIndex(const Method* meth, u4 idx) argument
528 checkWideRegisterIndex(const Method* meth, u4 idx) argument
549 checkVarargRegs(const Method* meth, const DecodedInstruction* pDecInsn) argument
578 checkVarargRangeRegs(const Method* meth, const DecodedInstruction* pDecInsn) argument
602 checkSwitchTargets(const Method* meth, InsnFlags* insnFlags, u4 curOffset) argument
717 checkBranchTarget(const Method* meth, InsnFlags* insnFlags, int curOffset, bool selfOkay) argument
796 const Method* meth = vdata->method; local
[all...]
H A DCodeVerify.cpp110 static bool isInitMethod(const Method* meth);
116 static bool verifyInstruction(const Method* meth, InsnFlags* insnFlags,\
421 UninitInstanceMap* dvmCreateUninitInstanceMap(const Method* meth, argument
424 const int insnsSize = dvmGetMethodInsnsSize(meth);
425 const u2* insns = meth->insns;
430 if (isInitMethod(meth)) {
595 static bool isInitMethod(const Method* meth) argument
597 return (*meth->name == '<' && strcmp(meth->name+1, "init>") == 0);
604 static bool isClassInitMethod(const Method* meth)
615 lookupClassByDescriptor(const Method* meth, const char* pDescriptor, VerifyError* pFailure) argument
702 lookupSignatureClass(const Method* meth, const char** pSig, VerifyError* pFailure) argument
737 lookupSignatureArrayClass(const Method* meth, const char** pSig, VerifyError* pFailure) argument
777 setTypesFromSignature(const Method* meth, RegType* regTypes, UninitInstanceMap* uninitMap) argument
960 getMethodReturnType(const Method* meth) argument
1103 verifyInvocationArgs(const Method* meth, RegisterLine* registerLine, const int insnRegCount, const DecodedInstruction* pDecInsn, UninitInstanceMap* uninitMap, MethodType methodType, bool isRange, bool isSuper, VerifyError* pFailure) argument
1377 getFieldClass(const Method* meth, const Field* field) argument
2580 updateRegisters(const Method* meth, InsnFlags* insnFlags, RegisterTable* regTable, int nextInsn, const RegisterLine* workLine) argument
2688 getInstField(const Method* meth, const UninitInstanceMap* uninitMap, RegType objType, int fieldIdx, VerifyError* pFailure) argument
2759 getStaticField(const Method* meth, int fieldIdx, VerifyError* pFailure) argument
2788 checkFinalFieldAccess(const Method* meth, const Field* field, VerifyError* pFailure) argument
2831 checkArrayIndexType(const Method* meth, RegType regType, VerifyError* pFailure) argument
2861 checkConstructorReturn(const Method* meth, const RegisterLine* registerLine, const int insnRegCount) argument
2889 checkMoveException(const Method* meth, int insnIdx, const char* logNote) argument
2912 getCaughtExceptionType(const Method* meth, int insnIdx, VerifyError* pFailure) argument
3025 const Method* meth = vdata->method; local
3181 verifyFilledNewArrayRegs(const Method* meth, RegisterLine* registerLine, const DecodedInstruction* pDecInsn, ClassObject* resClass, bool isRange, VerifyError* pFailure) argument
3239 replaceFailingInstruction(const Method* meth, InsnFlags* insnFlags, int insnIdx, VerifyError failure) argument
3454 const Method* meth = vdata->method; local
3608 const Method* meth = vdata->method; local
3796 verifyInstruction(const Method* meth, InsnFlags* insnFlags, RegisterTable* regTable, int insnIdx, UninitInstanceMap* uninitMap, int* pStartGuess) argument
6083 const Method* meth = vdata->method; local
[all...]
H A DVfyBasicBlock.cpp162 const Method* meth = vdata->method; local
178 gotBranch = dvmGetBranchOffset(meth, insnFlags, curIdx,
189 const u2* curInsn = &meth->insns[curIdx];
207 if (dexOpcodeFromCodeUnit(meth->insns[curIdx]) == OP_PACKED_SWITCH) {
210 assert(dexOpcodeFromCodeUnit(meth->insns[curIdx]) ==
232 meth->clazz->descriptor, meth->name, meth->shorty);
298 const Method* meth = vdata->method; local
300 const DexCode* pCode = dvmGetMethodCode(meth);
[all...]
H A DOptimize.h31 void dvmUpdateCodeUnit(const Method* meth, u2* ptr, u2 newVal);
H A DRegisterMap.cpp50 const Method* meth);
608 static bool writeMapForMethod(const Method* meth, u1** pPtr) argument
610 if (meth->registerMap == NULL) {
611 if (!dvmIsAbstractMethod(meth) && !dvmIsNativeMethod(meth)) {
613 meth->clazz->descriptor, meth->name);
621 size_t mapSize = computeRegisterMapSize(meth->registerMap);
622 memcpy(*pPtr, meth->registerMap, mapSize);
625 assert(**pPtr == meth
669 const Method* meth = &clazz->directMethods[i]; local
680 const Method* meth = &clazz->virtualMethods[i]; local
1442 compressMapDifferential(const RegisterMap* pMap, const Method* meth) argument
[all...]
/dalvik/vm/native/
H A Djava_lang_reflect_Method.cpp35 Method* meth; local
37 meth = dvmSlotToMethod(declaringClass, slot);
38 RETURN_INT(dvmFixMethodFlags(meth->accessFlags));
58 const Method* meth; local
65 meth = dvmSlotToMethod(declaringClass, slot);
66 assert(meth != NULL);
68 if (dvmIsStaticMethod(meth)) {
89 meth = dvmGetVirtualizedMethod(methObj->clazz, meth);
90 if (meth
125 Method* meth; local
146 Method* meth = dvmSlotToMethod(clazz, slot); local
161 Method* meth = dvmSlotToMethod(clazz, slot); local
175 Method* meth; local
197 Method* meth; local
221 Method* meth; local
[all...]
H A Djava_lang_reflect_Constructor.cpp44 Method* meth; local
65 meth = dvmSlotToMethod(declaringClass, slot);
66 assert(meth != NULL);
68 (void) dvmInvokeMethod(newObj, meth, argList, params, NULL, noAccessCheck);
/dalvik/tests/032-concrete-sub/src/
H A DConcreteSub.java41 Method meth;
46 meth = absClass.getMethod("redefineMe", (Class[]) null);
51 System.out.println("meth modifiers=" + meth.getModifiers());
/dalvik/tests/085-old-style-inner-class/src/
H A DMain.java37 private static String nameOf(Method meth) { argument
38 return (meth == null) ? "(null)" : meth.toString();
/dalvik/vm/reflect/
H A DReflect.cpp346 static int methodToSlot(const Method* meth) argument
348 ClassObject* clazz = meth->clazz;
351 if (dvmIsDirectMethod(meth)) {
352 slot = meth - clazz->directMethods;
356 slot = meth - clazz->virtualMethods;
380 * "meth" to construct it.
388 static Object* createConstructorObject(Method* meth) argument
412 cp = dvmCopyDescriptorStringFromMethod(meth, &mangle);
413 params = convertSignatureToClassArray(&cp, meth->clazz);
423 exceptions = dvmGetMethodThrows(meth);
471 Method* meth = &clazz->directMethods[i]; local
492 Method* meth = &clazz->directMethods[i]; local
525 dvmCreateReflectMethodObject(const Method* meth) argument
623 Method* meth = clazz->virtualMethods; local
1156 dvmGetBoxedReturnType(const Method* meth) argument
[all...]
/dalvik/tests/087-gc-after-link/src/
H A DMain.java86 Method meth = dexClass.getMethod("loadClass",
93 meth.invoke(dexFile, name, this);
97 Method meth = dexClass.getMethod("close", (Class[]) null);
98 meth.invoke(dexFile);
/dalvik/dx/src/com/android/dx/cf/direct/
H A DMethodListParser.java80 StdMethod meth =
83 methods.set(n, meth);
84 return meth;
/dalvik/tests/046-reflect/src/
H A DMain.java18 void printMethodInfo(Method meth) { argument
22 System.out.println("Method name is " + meth.getName());
24 + meth.getDeclaringClass().getName());
25 params = meth.getParameterTypes();
28 exceptions = meth.getExceptionTypes();
31 System.out.println(" Return type is " + meth.getReturnType().getName());
33 + Integer.toHexString(meth.getModifiers()));
34 //System.out.println(" GenericStr is " + meth.toGenericString());
69 Method meth;
71 meth
[all...]
/dalvik/dx/src/com/android/dx/ssa/
H A DDominators.java48 private final SsaMethod meth; field in class:Dominators
64 * @param meth {@code non-null;} method to process
68 private Dominators(SsaMethod meth, DomFront.DomInfo[] domInfos, argument
70 this.meth = meth;
73 this.blocks = meth.getBlocks();
82 * @param meth {@code non-null;} method to process
86 public static Dominators make(SsaMethod meth, DomFront.DomInfo[] domInfos, argument
88 Dominators result = new Dominators(meth, domInfos, postdom);
168 * @param meth {
[all...]
H A DDomFront.java37 private final SsaMethod meth; field in class:DomFront
60 * @param meth {@code non-null;} method to process
62 public DomFront(SsaMethod meth) { argument
63 this.meth = meth;
64 nodes = meth.getBlocks();
90 Dominators methDom = Dominators.make(meth, domInfos, false);
/dalvik/dx/src/com/android/dx/command/dump/
H A DBlockDumper.java196 ConcreteMethod meth =
200 ropDump(meth);
202 regularDump(meth);
209 * @param meth {@code non-null;} method data to dump
211 private void regularDump(ConcreteMethod meth) { argument
212 BytecodeArray code = meth.getCode();
214 ByteBlockList list = BasicBlocker.identifyBlocks(meth);
284 * @param meth {@code non-null;} method data to dump
286 private void ropDump(ConcreteMethod meth) { argument
288 BytecodeArray code = meth
[all...]
/dalvik/vm/
H A DNative.cpp512 Method* meth = &methods[count]; local
513 if (!dvmIsNativeMethod(meth))
515 if (dvmIsAbstractMethod(meth)) /* avoid abstract method stubs */
531 meth->clazz->descriptor, meth->name, meth->shorty);
532 dvmSetNativeFunc(meth, dvmResolveNativeMethod, NULL);
691 const Method* meth = (const Method*) vmethod; local
699 if (meth->clazz->classLoader != pLib->classLoader) {
701 pLib->pathName, meth
[all...]
H A DProfile.cpp304 Method* meth; local
311 meth = &clazz->virtualMethods[i];
312 if (meth->inProfile) {
313 name = dvmDescriptorToName(meth->clazz->descriptor);
314 fprintf(fp, "0x%08x\t%s\t%s\t%s\t%s\t%d\n", (int) meth,
315 name, meth->name,
316 dexProtoGetMethodDescriptor(&meth->prototype, &stringCache),
317 dvmGetMethodSourceFile(meth), dvmLineNumFromPC(meth, 0));
318 meth
[all...]
/dalvik/tests/004-annotations/src/android/test/anno/
H A DTestAnnotations.java120 Method meth;
125 meth = TestAnnotations.class.getMethod("getFocusType",
130 property = meth.getAnnotation(ExportedProperty.class);
138 meth.isAnnotationPresent(ExportedProperty.class));
140 meth.isAnnotationPresent(AnnoSimpleType.class));
/dalvik/tests/068-classloader/src/
H A DFancyLoader.java111 Method meth;
114 meth = mDexClass.getMethod("loadClass",
121 meth.invoke(mDexFile, name, this);
/dalvik/tests/086-null-super/src/
H A DMain.java83 Method meth = mDexClass.
91 meth.invoke(mDexFile, name, this);
/dalvik/vm/mterp/mips/
H A DOP_INVOKE_VIRTUAL_QUICK.S10 # op vAA, {vCCCC..v(CCCC+AA-1)}, meth /* BBBB */
/dalvik/vm/oo/
H A DObject.cpp673 const Method* meth)
678 if (dvmIsDirectMethod(meth)) {
680 assert(!dvmIsStaticMethod(meth));
681 return meth;
691 if (dvmIsInterfaceClass(meth->clazz)) {
695 if (clazz->iftable[i].clazz == meth->clazz)
704 methodIndex = clazz->iftable[i].methodIndexArray[meth->methodIndex];
706 methodIndex = meth->methodIndex;
727 const char* dvmGetMethodSourceFile(const Method* meth) argument
734 return meth
672 dvmGetVirtualizedMethod(const ClassObject* clazz, const Method* meth) argument
[all...]

Completed in 498 milliseconds

123