Home
last modified time | relevance | path

Searched refs:programMethod (Results 1 – 25 of 71) sorted by relevance

123

/external/proguard/src/proguard/classfile/editor/
DMemberAdder.java184 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
186 String name = programMethod.getName(programClass); in visitProgramMethod()
187 String descriptor = programMethod.getDescriptor(programClass); in visitProgramMethod()
188 int accessFlags = programMethod.getAccessFlags(); in visitProgramMethod()
200 …pping abstract method ["+programClass.getName()+"."+programMethod.getName(programClass)+programMet… in visitProgramMethod()
215 …dder: updating method ["+programClass.getName()+"."+programMethod.getName(programClass)+programMet… in visitProgramMethod()
223 programMethod.attributesAccept(programClass, in visitProgramMethod()
247 …Adder: copying method ["+programClass.getName()+"."+programMethod.getName(programClass)+programMet… in visitProgramMethod()
253 constantAdder.addConstant(programClass, programMethod.u2nameIndex), in visitProgramMethod()
254 … constantAdder.addConstant(programClass, programMethod.u2descriptorIndex), in visitProgramMethod()
[all …]
DAccessFixer.java74 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
77 super.visitProgramMember(programClass, programMethod); in visitProgramMethod()
81 if ((programMethod.getAccessFlags() & (ClassConstants.ACC_PRIVATE | in visitProgramMethod()
83 !ClassUtil.isInitializer(programMethod.getName(programClass))) in visitProgramMethod()
86 new NamedMethodVisitor(programMethod.getName(programClass), in visitProgramMethod()
87 programMethod.getDescriptor(programClass), in visitProgramMethod()
/external/proguard/src/proguard/optimize/info/
DParameterUsageMarker.java80 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
83 ClassUtil.internalMethodParameterSize(programMethod.getDescriptor(programClass), in visitProgramMethod()
84 programMethod.getAccessFlags()); in visitProgramMethod()
88 int accessFlags = programMethod.getAccessFlags(); in visitProgramMethod()
95 markParameterUsed(programMethod, 0); in visitProgramMethod()
102 markUsedParameters(programMethod, in visitProgramMethod()
111 markUsedParameters(programMethod, -1L); in visitProgramMethod()
118 markParameterUsed(programMethod, 0); in visitProgramMethod()
128 programClass.mayHaveImplementations(programMethod) || in visitProgramMethod()
129 programMethod.getName(programClass).equals(ClassConstants.METHOD_NAME_INIT))) in visitProgramMethod()
[all …]
DSideEffectMethodMarker.java81 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
83 if (!hasSideEffects(programMethod) && in visitProgramMethod()
84 !NoSideEffectMethodMarker.hasNoSideEffects(programMethod)) in visitProgramMethod()
88 (programMethod.getAccessFlags() & in visitProgramMethod()
96 programMethod.attributesAccept(programClass, this); in visitProgramMethod()
102 markSideEffects(programMethod); in visitProgramMethod()
DMemberOptimizationInfoSetter.java51 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
53 if (!KeepMarker.isKept(programMethod)) in visitProgramMethod()
56 programMethod); in visitProgramMethod()
DSideEffectMethodFilter.java57 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
59 if (SideEffectMethodMarker.hasSideEffects(programMethod)) in visitProgramMethod()
61 memberVisitor.visitProgramMethod(programClass, programMethod); in visitProgramMethod()
/external/proguard/src/proguard/optimize/
DMemberDescriptorSpecializer.java97 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
102 (programMethod.getAccessFlags() & ClassConstants.ACC_STATIC) != 0 ? in visitProgramMethod()
106 ClassUtil.internalMethodParameterCount(programMethod.getDescriptor(programClass)); in visitProgramMethod()
113 …Value parameterValue = StoringInvocationUnit.getMethodParameterValue(programMethod, parameterIndex… in visitProgramMethod()
117 if (programMethod.referencedClasses[classIndex] != referencedClass) in visitProgramMethod()
121 …DescriptorSpecializer: "+programClass.getName()+"."+programMethod.getName(programClass)+programMet… in visitProgramMethod()
122 …System.out.println(" "+programMethod.referencedClasses[classIndex].getName()+" -> "+referencedCla… in visitProgramMethod()
125 programMethod.referencedClasses[classIndex] = referencedClass; in visitProgramMethod()
130 … extraParameterMemberVisitor.visitProgramMethod(programClass, programMethod); in visitProgramMethod()
DMethodDescriptorShrinker.java77 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
81 …odDescriptorShrinker: ["+programClass.getName()+"."+programMethod.getName(programClass)+programMet… in visitProgramMethod()
85 String descriptor = programMethod.getDescriptor(programClass); in visitProgramMethod()
86 String newDescriptor = shrinkDescriptor(programMethod, descriptor); in visitProgramMethod()
90 String name = programMethod.getName(programClass); in visitProgramMethod()
105 programMethod.u2nameIndex = in visitProgramMethod()
110 programMethod.referencedClasses = in visitProgramMethod()
111 shrinkReferencedClasses(programMethod, in visitProgramMethod()
113 programMethod.referencedClasses); in visitProgramMethod()
116 programMethod.u2descriptorIndex = in visitProgramMethod()
[all …]
DDuplicateInitializerFixer.java77 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
80 String name = programMethod.getName(programClass); in visitProgramMethod()
84 String descriptor = programMethod.getDescriptor(programClass); in visitProgramMethod()
86 if (!programMethod.equals(similarMethod)) in visitProgramMethod()
89 if (KeepMarker.isKept(programMethod)) in visitProgramMethod()
92 programMethod = (ProgramMethod)similarMethod; in visitProgramMethod()
122 …etName()+"."+name+descriptor+"] ("+ClassUtil.externalClassAccessFlags(programMethod.getAccessFlags… in visitProgramMethod()
126 programMethod.u2descriptorIndex = in visitProgramMethod()
132 programMethod.attributesAccept(programClass, in visitProgramMethod()
138 … extraFixedInitializerVisitor.visitProgramMethod(programClass, programMethod); in visitProgramMethod()
DMethodStaticizer.java70 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
73 if (!ParameterUsageMarker.isParameterUsed(programMethod, 0)) in visitProgramMethod()
76 programMethod.u2accessFlags = in visitProgramMethod()
77 (programMethod.getAccessFlags() & ~ClassConstants.ACC_FINAL) | in visitProgramMethod()
83 extraStaticMemberVisitor.visitProgramMethod(programClass, programMethod); in visitProgramMethod()
DConstantParameterFilter.java57 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
62 (programMethod.getAccessFlags() & ClassConstants.ACC_STATIC) != 0 ? in visitProgramMethod()
66 ClassUtil.internalMethodParameterCount(programMethod.getDescriptor(programClass)); in visitProgramMethod()
70 Value value = StoringInvocationUnit.getMethodParameterValue(programMethod, index); in visitProgramMethod()
74 constantParameterVisitor.visitProgramMethod(programClass, programMethod); in visitProgramMethod()
DDuplicateInitializerInvocationFixer.java151 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
154 programMethod.getDescriptor(programClass).length() - descriptor.length(); in visitProgramMethod()
161 …ame()+"."+programMethod.getName(programClass)+programMethod.getDescriptor(programClass)+"] ("+Clas… in visitProgramMethod()
/external/proguard/src/proguard/optimize/peephole/
DMethodFinalizer.java65 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
67 String name = programMethod.getName(programClass); in visitProgramMethod()
74 if ((programMethod.u2accessFlags & (ClassConstants.ACC_PRIVATE | in visitProgramMethod()
80 (!KeepMarker.isKept(programMethod) && in visitProgramMethod()
82 !memberFinder.isOverriden(programClass, programMethod))))) in visitProgramMethod()
84 programMethod.u2accessFlags |= ClassConstants.ACC_FINAL; in visitProgramMethod()
89 extraMemberVisitor.visitProgramMethod(programClass, programMethod); in visitProgramMethod()
DMethodInliner.java487 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
489 int accessFlags = programMethod.getAccessFlags(); in visitProgramMethod()
492 !KeepMarker.isKept(programMethod) && in visitProgramMethod()
511 !programMethod.getName(programClass).equals(ClassConstants.METHOD_NAME_INIT) && in visitProgramMethod()
514 (!programMethod.equals(targetMethod) || in visitProgramMethod()
518 !inliningMethods.contains(programMethod) && in visitProgramMethod()
527 (!SuperInvocationMarker.invokesSuperMethods(programMethod) && in visitProgramMethod()
528 !DynamicInvocationMarker.invokesDynamically(programMethod) || in visitProgramMethod()
533 (!BackwardBranchMarker.branchesBackward(programMethod) || in visitProgramMethod()
538 ((!AccessMethodMarker.accessesPrivateCode(programMethod) || in visitProgramMethod()
[all …]
DMemberPrivatizer.java86 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
89 if (NonPrivateMemberMarker.canBeMadePrivate(programMethod)) in visitProgramMethod()
92 programMethod.u2accessFlags = in visitProgramMethod()
93 AccessUtil.replaceAccessFlags(programMethod.u2accessFlags, in visitProgramMethod()
99 extraMemberVisitor.visitProgramMethod(programClass, programMethod); in visitProgramMethod()
/external/proguard/src/proguard/obfuscate/
DMappingPrinter.java104 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
108 String name = programMethod.getName(programClass); in visitProgramMethod()
114 String newName = MemberObfuscator.newMemberName(programMethod); in visitProgramMethod()
118 programMethod.attributesAccept(programClass, this); in visitProgramMethod()
122 programMethod.getName(programClass), in visitProgramMethod()
123 programMethod.getDescriptor(programClass)) + in visitProgramMethod()
/external/proguard/src/proguard/preverify/
DCodePreverifier.java103 ProgramMethod programMethod = (ProgramMethod)method; in visitCodeAttribute0() local
130 programMethod, in visitCodeAttribute0()
138 programMethod, in visitCodeAttribute0()
155 programMethod, in visitCodeAttribute0()
196 new ClassPrinter().visitProgramMethod(programClass, programMethod); in visitCodeAttribute0()
208 …new AttributesEditor(programClass, programMethod, codeAttribute, true).deleteAttribute(stackMapAtt… in visitCodeAttribute0()
239 …new AttributesEditor(programClass, programMethod, codeAttribute, true).addAttribute(stackMapAttrib… in visitCodeAttribute0()
243 …System.out.println("Preverifier ["+programClass.getName()+"."+programMethod.getName(programClass)+… in visitCodeAttribute0()
244 … stackMapAttribute.accept(programClass, programMethod, codeAttribute, new ClassPrinter()); in visitCodeAttribute0()
261 ProgramMethod programMethod, in correspondingVerificationTypes() argument
[all …]
/external/proguard/src/proguard/shrink/
DUsagePrinter.java135 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
137 if (usageMarker.isUsed(programMethod) ^ printUnusedItems) in visitProgramMethod()
142 programMethod.attributesAccept(programClass, this); in visitProgramMethod()
145 programMethod.getAccessFlags(), in visitProgramMethod()
146 programMethod.getName(programClass), in visitProgramMethod()
147 programMethod.getDescriptor(programClass))); in visitProgramMethod()
DUsageMarker.java213 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
216 if (isPossiblyUsed(programMethod)) in visitProgramMethod()
218 markAsUsed(programMethod); in visitProgramMethod()
221 markProgramMethodBody(programClass, programMethod); in visitProgramMethod()
278 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
280 if (shouldBeMarkedAsUsed(programMethod)) in visitProgramMethod()
285 markAsUsed(programMethod); in visitProgramMethod()
288 markProgramMethodBody(programClass, programMethod); in visitProgramMethod()
291 markMethodHierarchy(programClass, programMethod); in visitProgramMethod()
295 else if (shouldBeMarkedAsPossiblyUsed(programMethod)) in visitProgramMethod()
[all …]
DShortestUsageMarker.java82 protected void markProgramMethodBody(ProgramClass programClass, ProgramMethod programMethod) in markProgramMethodBody() argument
86 currentUsageMark = new ShortestUsageMark(getShortestUsageMark(programMethod), in markProgramMethodBody()
90 programMethod); in markProgramMethodBody()
92 super.markProgramMethodBody(programClass, programMethod); in markProgramMethodBody()
239 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
241 checkCause(programMethod); in visitProgramMethod()
DShortestUsagePrinter.java131 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
134 String name = programMethod.getName(programClass); in visitProgramMethod()
135 String type = programMethod.getDescriptor(programClass); in visitProgramMethod()
141 programMethod.attributesAccept(programClass, this); in visitProgramMethod()
145 printReason(programMethod); in visitProgramMethod()
/external/proguard/src/proguard/classfile/visitor/
DMethodImplementationTraveler.java73 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
77 programMethod.accept(programClass, memberVisitor); in visitProgramMethod()
80 if (!isSpecial(programClass, programMethod)) in visitProgramMethod()
86 new NamedMethodVisitor(programMethod.getName(programClass), in visitProgramMethod()
87programMethod.getDescriptor(programClass), in visitProgramMethod()
DMethodImplementationFilter.java54 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
56 if (programClass.mayHaveImplementations(programMethod)) in visitProgramMethod()
58 memberVisitor.visitProgramMethod(programClass, programMethod); in visitProgramMethod()
DSimpleClassPrinter.java116 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
127 programMethod.getAccessFlags() : in visitProgramMethod()
129 programMethod.getName(programClass), in visitProgramMethod()
130 programMethod.getDescriptor(programClass))); in visitProgramMethod()
/external/proguard/src/proguard/
DDescriptorKeepChecker.java108 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
111 referencingMember = programMethod; in visitProgramMethod()
118 Clazz[] referencedClasses = programMethod.referencedClasses; in visitProgramMethod()
125 if (ClassUtil.isInternalClassType(programMethod.getDescriptor(programClass))) in visitProgramMethod()

123