Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 539) sorted by relevance

12345678910>>...22

/dalvik/dx/tests/031-bb-dead-code/
Dblort.j18 .method public <init>()V
24 .end method
26 ; dead code after the last reachable instruction in a method
27 .method public test_deadend1()V
30 .end method
32 ; dead code after the last reachable instruction in a method
33 .method public test_deadend2()V
37 .end method
39 ; dead code after the last reachable instruction in a method
40 .method public test_deadend3()V
[all …]
Dexpected.txt3 method <init> ()V
6 0001: invokespecial method{java.lang.Object.<init>:()V}
12 method test_deadend1 ()V
18 method test_deadend2 ()V
24 method test_deadend3 ()V
31 method test_dead_exception_handler ()V
37 method test_dead_goto ()V
46 method test_dead_ret ()V
59 method test_dead_tableswitch ()V
69 method test_dead_lookupswitch ()V
[all …]
/dalvik/vm/interp/
DStack.cpp63 static bool dvmPushInterpFrame(Thread* self, const Method* method) in dvmPushInterpFrame() argument
70 assert(!dvmIsNativeMethod(method)); in dvmPushInterpFrame()
71 assert(!dvmIsAbstractMethod(method)); in dvmPushInterpFrame()
73 stackReq = method->registersSize * 4 // params + locals in dvmPushInterpFrame()
75 + method->outsSize * 4; // args to other methods in dvmPushInterpFrame()
87 self->interpStackSize, method->clazz->descriptor, method->name); in dvmPushInterpFrame()
88 dvmHandleStackOverflow(self, method); in dvmPushInterpFrame()
99 stackPtr -= method->registersSize * 4 + sizeof(StackSaveArea); in dvmPushInterpFrame()
104 memset(stackPtr - (method->outsSize*4), 0xaf, stackReq); in dvmPushInterpFrame()
115 breakSaveBlock->method = NULL; in dvmPushInterpFrame()
[all …]
DInterp.cpp83 Method* method; /* method we're associated with */ member
233 static bool dvmBreakpointSetAdd(BreakpointSet* pSet, Method* method, in dvmBreakpointSetAdd() argument
237 const u2* addr = method->insns + instrOffset; in dvmBreakpointSetAdd()
258 pBreak->method = method; in dvmBreakpointSetAdd()
277 if (dvmIsClassVerified(method->clazz)) { in dvmBreakpointSetAdd()
279 method->clazz->descriptor, addr); in dvmBreakpointSetAdd()
282 *addr, method->clazz->descriptor, method->name, in dvmBreakpointSetAdd()
286 dvmDexChangeDex1(method->clazz->pDvmDex, (u1*)addr, in dvmBreakpointSetAdd()
291 method->clazz->descriptor, addr); in dvmBreakpointSetAdd()
311 static void dvmBreakpointSetRemove(BreakpointSet* pSet, Method* method, in dvmBreakpointSetRemove() argument
[all …]
DStack.h137 const Method* method; member
171 return SAVEAREA_FROM_FP(fp)->method == NULL; in dvmIsBreakFrame()
184 bool dvmPushJNIFrame(Thread* thread, const Method* method);
189 bool dvmPushLocalFrame(Thread* thread, const Method* method);
199 void dvmCallMethod(Thread* self, const Method* method, Object* obj,
201 void dvmCallMethodV(Thread* self, const Method* method, Object* obj,
203 void dvmCallMethodA(Thread* self, const Method* method, Object* obj,
227 extern "C" int dvmLineNumFromPC(const Method* method, u4 relPc);
272 extern "C" void dvmHandleStackOverflow(Thread* self, const Method* method);
/dalvik/dx/src/com/android/dx/dex/file/
DMethodAnnotationStruct.java31 private final CstMethodRef method; field in MethodAnnotationStruct
42 public MethodAnnotationStruct(CstMethodRef method, in MethodAnnotationStruct() argument
44 if (method == null) { in MethodAnnotationStruct()
52 this.method = method; in MethodAnnotationStruct()
58 return method.hashCode(); in hashCode()
67 return method.equals(((MethodAnnotationStruct) other).method); in equals()
72 return method.compareTo(other.method); in compareTo()
80 methodIds.intern(method); in addContents()
86 int methodIdx = file.getMethodIds().indexOf(method); in writeTo()
90 out.annotate(0, " " + method.toHuman()); in writeTo()
[all …]
DParameterAnnotationStruct.java34 private final CstMethodRef method; field in ParameterAnnotationStruct
48 public ParameterAnnotationStruct(CstMethodRef method, in ParameterAnnotationStruct() argument
50 if (method == null) { in ParameterAnnotationStruct()
58 this.method = method; in ParameterAnnotationStruct()
82 return method.hashCode(); in hashCode()
91 return method.equals(((ParameterAnnotationStruct) other).method); in equals()
96 return method.compareTo(other.method); in compareTo()
104 methodIds.intern(method); in addContents()
110 int methodIdx = file.getMethodIds().indexOf(method); in writeTo()
114 out.annotate(0, " " + method.toHuman()); in writeTo()
[all …]
DEncodedMethod.java36 private final CstMethodRef method; field in EncodedMethod
54 public EncodedMethod(CstMethodRef method, int accessFlags, in EncodedMethod() argument
58 if (method == null) { in EncodedMethod()
62 this.method = method; in EncodedMethod()
68 this.code = new CodeItem(method, code, isStatic, throwsList); in EncodedMethod()
90 return method.compareTo(other.method); in compareTo()
102 sb.append(method); in toString()
120 methodIds.intern(method); in addContents()
129 return method.toHuman(); in toHuman()
135 return method.getNat().getName(); in getName()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DMethodAnnotationStruct.java31 private final CstMethodRef method; field in MethodAnnotationStruct
42 public MethodAnnotationStruct(CstMethodRef method, in MethodAnnotationStruct() argument
44 if (method == null) { in MethodAnnotationStruct()
52 this.method = method; in MethodAnnotationStruct()
58 return method.hashCode(); in hashCode()
67 return method.equals(((MethodAnnotationStruct) other).method); in equals()
72 return method.compareTo(other.method); in compareTo()
80 methodIds.intern(method); in addContents()
86 int methodIdx = file.getMethodIds().indexOf(method); in writeTo()
90 out.annotate(0, " " + method.toHuman()); in writeTo()
[all …]
DParameterAnnotationStruct.java34 private final CstMethodRef method; field in ParameterAnnotationStruct
48 public ParameterAnnotationStruct(CstMethodRef method, in ParameterAnnotationStruct() argument
50 if (method == null) { in ParameterAnnotationStruct()
58 this.method = method; in ParameterAnnotationStruct()
82 return method.hashCode(); in hashCode()
91 return method.equals(((ParameterAnnotationStruct) other).method); in equals()
96 return method.compareTo(other.method); in compareTo()
104 methodIds.intern(method); in addContents()
110 int methodIdx = file.getMethodIds().indexOf(method); in writeTo()
114 out.annotate(0, " " + method.toHuman()); in writeTo()
[all …]
DEncodedMethod.java36 private final CstMethodRef method; field in EncodedMethod
54 public EncodedMethod(CstMethodRef method, int accessFlags, in EncodedMethod() argument
58 if (method == null) { in EncodedMethod()
62 this.method = method; in EncodedMethod()
68 this.code = new CodeItem(method, code, isStatic, throwsList); in EncodedMethod()
90 return method.compareTo(other.method); in compareTo()
102 sb.append(method); in toString()
120 methodIds.intern(method); in addContents()
129 return method.toHuman(); in toHuman()
135 return method.getNat().getName(); in getName()
[all …]
/dalvik/vm/mterp/x86-atom/
DOP_INVOKE_STATIC.S47 FETCH 1, %eax # %eax<- method index
49 movl (%ecx, %eax, 4), %ecx # %ecx<- resolved method to call
52 jne common_invokeMethod${routine} # invoke method common code
57 movl offGlue_method(%edx), %edx # %edx<- glue->method
58 movl $$METHOD_STATIC, -4(%esp) # resolver method type
59 movl %eax, -8(%esp) # push parameter method index
60 movl offMethod_clazz(%edx), %edx # %edx<- glue->method->clazz
61 movl %edx, -12(%esp) # push parameter method
67 cmp $$0, %eax # check for null method
69 movl %eax, %ecx # %ecx<- method
[all …]
DOP_INVOKE_SUPER.S51 FETCH 1, %edx # %edx<- method index
54 movl (%ecx, %edx, 4), %ecx # %ecx<- resolved base method
61 movl offGlue_method(%eax), %eax # %eax<- glue->method
62 movl offMethod_clazz(%eax), %eax # %eax<- glue->method->clazz
74 movl offClassObject_super(%eax), %edx # %edx<- glue->method->clazz->super
78 jnc .L${opcode}_nsm # handle method not present
79 movl offClassObject_vtable(%edx), %edx # %edx<- glue->method->clazz->super->vtable
81 jmp common_invokeMethod${routine} # invoke method common code
85 movl %edx, -8(%esp) # push parameter method index
86 movl $$METHOD_VIRTUAL, -4(%esp) # push parameter method type
[all …]
DOP_INVOKE_INTERFACE.S48 FETCH 1, %ecx # %ecx<- method index
49 movl %ecx, -12(%esp) # push argument method index
64 movl offGlue_method(%ecx), %ecx # %ecx<- glue->method
65 movl %ecx, -8(%esp) # push parameter method
66 movl offObject_clazz(%edx), %edx # %edx<- glue->method->clazz
70 # const Method* method, DvmDex* methodClassDex)
75 movl %eax, %ecx # %ecx<- method
76 jmp common_invokeMethod${routine} # invoke method common code
DOP_INVOKE_SUPER_QUICK.S28 movl offGlue_method(%ecx), %eax # %eax<- glue->method
32 FETCH 1, %ecx # %ecx<- method index
33 movl offMethod_clazz(%eax), %eax # %eax<- glue->method->clazz
34 movl offClassObject_super(%eax), %eax # %eax<- glue->method->clazz->super
36 movl offClassObject_vtable(%eax), %eax # %edx<- glue->method->clazz->super->vtable
40 jmp common_invokeMethod${routine} # invoke method common code
/dalvik/vm/oo/
DObject.h52 const Method* method, struct Thread* self);
115 #define SET_METHOD_FLAG(method, flag) \ argument
116 do { (method)->accessFlags |= (flag); } while (0)
118 #define CLEAR_METHOD_FLAG(method, flag) \ argument
119 do { (method)->accessFlags &= ~(flag); } while (0)
121 #define IS_METHOD_FLAG_SET(method, flag) \ argument
122 (((method)->accessFlags & (flag)) != 0)
124 #define GET_METHOD_FLAG_GROUP(method, flags) \ argument
125 ((u4)((method)->accessFlags & (flags)))
673 INLINE bool dvmIsPublicMethod(const Method* method) { in dvmIsPublicMethod() argument
[all …]
/dalvik/vm/analysis/
DOptimize.cpp34 Method* method; member
40 static void optimizeMethod(Method* method, bool essentialOnly);
41 static void rewriteInstField(Method* method, u2* insns, Opcode quickOpc,
43 static void rewriteStaticField(Method* method, u2* insns, Opcode volatileOpc);
44 static void rewriteVirtualInvoke(Method* method, u2* insns, Opcode newOpc);
45 static bool rewriteInvokeObjectInit(Method* method, u2* insns);
46 static bool rewriteExecuteInline(Method* method, u2* insns,
48 static bool rewriteExecuteInlineRange(Method* method, u2* insns,
50 static void rewriteReturnVoid(Method* method, u2* insns);
51 static bool needsReturnBarrier(Method* method);
[all …]
/dalvik/tools/dmtracedump/
DTraceDump.c140 struct MethodEntry *method; member
196 MethodEntry *method; member
300 void initMethodEntry(MethodEntry *method, unsigned int methodId, in initMethodEntry() argument
305 method->methodId = methodId; in initMethodEntry()
306 method->className = className; in initMethodEntry()
307 method->methodName = methodName; in initMethodEntry()
308 method->signature = signature; in initMethodEntry()
309 method->fileName = fileName; in initMethodEntry()
310 method->lineNum = (lineNumStr != NULL) ? atoi(lineNumStr) : -1; in initMethodEntry()
311 method->elapsedExclusive = 0; in initMethodEntry()
[all …]
/dalvik/vm/mterp/armv5te/
Ddebug.cpp51 saveArea->method, saveArea->xtra.currentPc); in dvmDumpFp()
55 saveArea->method, saveArea->xtra.currentPc, in dvmDumpFp()
63 void dvmMterpPrintMethod(Method* method) in dvmMterpPrintMethod() argument
70 ((method->accessFlags & (ACC_STATIC|ACC_PRIVATE)) != 0) || in dvmMterpPrintMethod()
71 (method->name[0] == '<'); in dvmMterpPrintMethod()
73 char* desc = dexProtoCopyMethodDescriptor(&method->prototype); in dvmMterpPrintMethod()
77 method->clazz->descriptor, in dvmMterpPrintMethod()
78 method->name, in dvmMterpPrintMethod()
/dalvik/dx/tests/071-dex-java-stack-ops/
Dblort.j19 .method public static consume1(I)V
24 .end method
26 .method public static consume2(I)V
31 .end method
33 .method public static consume3(I)V
38 .end method
40 .method public static consume4(I)V
45 .end method
47 .method public static consume5(I)V
52 .end method
[all …]
/dalvik/dx/src/com/android/dx/cf/attrib/
DAttEnclosingMethod.java34 private final CstNat method; field in AttEnclosingMethod
43 public AttEnclosingMethod(CstType type, CstNat method) { in AttEnclosingMethod() argument
51 this.method = method; in AttEnclosingMethod()
76 return method; in getMethod()
/dalvik/vm/
DAllocTracker.cpp59 const Method* method; /* which method we're executing in */ member
156 const Method* method = saveArea->method; in getStackFrames() local
159 pRec->stackElem[stackDepth].method = method; in getStackFrames()
160 if (dvmIsNativeMethod(method)) { in getStackFrames()
163 assert(saveArea->xtra.currentPc >= method->insns && in getStackFrames()
165 method->insns + dvmGetMethodInsnsSize(method)); in getStackFrames()
167 (int) (saveArea->xtra.currentPc - method->insns); in getStackFrames()
178 pRec->stackElem[stackDepth].method = NULL; in getStackFrames()
303 static const char* getMethodSourceFile(const Method* method) in getMethodSourceFile() argument
305 const char* fileName = dvmGetMethodSourceFile(method); in getMethodSourceFile()
[all …]
/dalvik/dx/src/com/android/dx/cf/code/
DConcreteMethod.java41 private final Method method; field in ConcreteMethod
74 public ConcreteMethod(Method method, ClassFile cf, boolean keepLines, boolean keepLocals) { in ConcreteMethod() argument
75 this(method, cf.getAccessFlags(), cf.getSourceFile(), keepLines, keepLocals); in ConcreteMethod()
78 public ConcreteMethod(Method method, int accessFlags, CstString sourceFile, in ConcreteMethod() argument
80 this.method = method; in ConcreteMethod()
84 AttributeList attribs = method.getAttributes(); in ConcreteMethod()
149 return method.getNat(); in getNat()
154 return method.getName(); in getName()
159 return method.getDescriptor(); in getDescriptor()
164 return method.getAccessFlags(); in getAccessFlags()
[all …]
/dalvik/dx/src/com/android/dx/ssa/
DLocalVariableExtractor.java37 private final SsaMethod method; field in LocalVariableExtractor
54 public static LocalVariableInfo extract(SsaMethod method) { in extract() argument
55 LocalVariableExtractor lve = new LocalVariableExtractor(method); in extract()
64 private LocalVariableExtractor(SsaMethod method) { in LocalVariableExtractor() argument
65 if (method == null) { in LocalVariableExtractor()
69 ArrayList<SsaBasicBlock> blocks = method.getBlocks(); in LocalVariableExtractor()
71 this.method = method; in LocalVariableExtractor()
73 this.resultInfo = new LocalVariableInfo(method); in LocalVariableExtractor()
85 if (method.getRegCount() > 0 ) { in doit()
86 for (int bi = method.getEntryBlockIndex(); in doit()
[all …]
/dalvik/vm/reflect/
DReflect.h110 Object* dvmCreateReflectObjForMethod(const ClassObject* clazz, Method* method);
117 INLINE bool dvmIsReflectionMethod(const Method* method) in dvmIsReflectionMethod() argument
119 return (method->clazz == gDvm.classJavaLangReflectMethod); in dvmIsReflectionMethod()
140 ArrayObject* dvmGetMethodAnnotations(const Method* method);
142 ArrayObject* dvmGetParameterAnnotations(const Method* method);
148 Object* dvmGetMethodAnnotation(const ClassObject* clazz, const Method* method,
150 Object* dvmGetFieldAnnotation(const ClassObject* clazz, const Field* method,
157 bool dvmIsMethodAnnotationPresent(const ClassObject* clazz, const Method* method,
159 bool dvmIsFieldAnnotationPresent(const ClassObject* clazz, const Field* method,
165 Object* dvmGetAnnotationDefaultValue(const Method* method);
[all …]

12345678910>>...22