Lines Matching refs:Method
321 * an enumeration index. For now we just use the Method*.
323 static MethodId methodToMethodId(const Method* meth)
327 static Method* methodIdToMethod(RefTypeId refTypeId, MethodId id)
329 // TODO? verify "id" is actually a method in "refTypeId"
330 return (Method*)(u4) id;
1137 * Method and Field
1142 * Get the method name from a MethodId.
1146 Method* meth;
1217 Method* meth;
1304 * For Method.LineTable: output the line table.
1311 Method* method;
1317 method = methodIdToMethod(refTypeId, methodId);
1318 if (dvmIsNativeMethod(method)) {
1323 end = dvmGetMethodInsnsSize(method);
1335 dexDecodeDebugInfo(method->clazz->pDvmDex->pDexFile,
1336 dvmGetMethodCode(method),
1337 method->clazz->descriptor,
1338 method->prototype.protoIdx,
1339 method->accessFlags,
1378 const Method* method = saveArea->method;
1379 newSlot = method->registersSize - method->insSize;
1411 * For Method.VariableTable[WithGeneric]: output information about local
1412 * variables for the specified method.
1417 Method* method;
1422 method = methodIdToMethod(refTypeId, methodId);
1424 expandBufAdd4BE(pReply, method->insSize);
1432 dexDecodeDebugInfo(method->clazz->pDvmDex->pDexFile,
1433 dvmGetMethodCode(method),
1434 method->clazz->descriptor,
1435 method->prototype.protoIdx,
1436 method->accessFlags,
2094 const Method* method = saveArea->method;
2099 if (dvmIsInterfaceClass(method->clazz))
2103 pLoc->classId = classObjectToRefTypeId(method->clazz);
2104 pLoc->methodId = methodToMethodId(method);
2105 if (dvmIsNativeMethod(method))
2108 pLoc->idx = saveArea->xtra.currentPc - method->insns;
2204 const Method* method = saveArea->method;
2205 int argOffset = method->registersSize - method->insSize;
2208 if (method == NULL) {
2215 LOGVV(" Method='%s' native=%d static=%d this=%p",
2216 method->name, dvmIsNativeMethod(method),
2217 dvmIsStaticMethod(method), (Object*) framePtr[argOffset]);
2223 if (dvmIsNativeMethod(method) || dvmIsStaticMethod(method))
2230 framePtr, method->clazz->descriptor, method->name);
2255 * Copy the value of a method argument or local variable into the
2414 void dvmDbgPostLocationEvent(const Method* method, int pcOffset,
2419 if (dvmIsInterfaceClass(method->clazz))
2423 loc.classId = classObjectToRefTypeId(method->clazz);
2424 loc.methodId = methodToMethodId(method);
2436 classObjectToRefTypeId(method->clazz);
2448 const Method* throwMeth;
2449 const Method* catchMeth;
2451 throwMeth = SAVEAREA_FROM_FP(throwFp)->method;
2463 catchMeth = SAVEAREA_FROM_FP(catchFp)->method;
2545 Method* method = methodIdToMethod(pLoc->classId, pLoc->methodId);
2546 assert(!dvmIsNativeMethod(method));
2547 dvmAddBreakAddr(method, pLoc->idx);
2556 Method* method = methodIdToMethod(pLoc->classId, pLoc->methodId);
2557 assert(!dvmIsNativeMethod(method));
2558 dvmClearBreakAddr(method, pLoc->idx);
2616 * Invoke a method in a thread that has been stopped on a breakpoint or
2643 * a method we have to resume fully and then re-suspend it back to the
2650 * by rejecting the method invocation request. Without this, we will
2655 "for method exec",
2670 targetThread->invokeReq.method = methodIdToMethod(classId, methodId);
2752 static u1 getReturnTypeBasicTag(const Method* method)
2754 const char* descriptor = dexProtoGetReturnType(&method->prototype);
2759 * Execute the method described by "*pReq".
2767 const Method* meth;
2773 * to preserve that across the method invocation.
2784 * Translate the method through the vtable, unless we're calling a
2785 * direct method or the debugger wants to suppress it.
2788 dvmIsDirectMethod(pReq->method))
2790 meth = pReq->method;
2792 meth = dvmGetVirtualizedMethod(pReq->clazz, pReq->method);
2800 LOGV("JDWP invoking method %p/%p %s.%s:%s",
2801 pReq->method, meth, meth->clazz->descriptor, meth->name, desc);
2885 const AddressSet *dvmAddressSetForLine(const Method* method, int line)
2888 const DexFile *pDexFile = method->clazz->pDvmDex->pDexFile;
2889 u4 insnsSize = dvmGetMethodInsnsSize(method);
2900 dexDecodeDebugInfo(pDexFile, dvmGetMethodCode(method),
2901 method->clazz->descriptor,
2902 method->prototype.protoIdx,
2903 method->accessFlags,