Home
last modified time | relevance | path

Searched refs:variableIndex (Results 1 – 25 of 32) sorted by relevance

12

/external/proguard/src/proguard/optimize/evaluation/
DLivenessAnalyzer.java95 public boolean isAliveBefore(int instructionOffset, int variableIndex) in isAliveBefore() argument
97 return variableIndex >= MAX_VARIABLES_SIZE || in isAliveBefore()
98 (isAliveBefore[instructionOffset] & (1L << variableIndex)) != 0; in isAliveBefore()
106 public void setAliveBefore(int instructionOffset, int variableIndex, boolean alive) in setAliveBefore() argument
108 if (variableIndex < MAX_VARIABLES_SIZE) in setAliveBefore()
112 isAliveBefore[instructionOffset] |= 1L << variableIndex; in setAliveBefore()
116 isAliveBefore[instructionOffset] &= ~(1L << variableIndex); in setAliveBefore()
126 public boolean isAliveAfter(int instructionOffset, int variableIndex) in isAliveAfter() argument
128 return variableIndex >= MAX_VARIABLES_SIZE || in isAliveAfter()
129 (isAliveAfter[instructionOffset] & (1L << variableIndex)) != 0; in isAliveAfter()
[all …]
DEvaluationSimplifier.java244 int variableIndex = variableInstruction.variableIndex; in visitVariableInstruction() local
253 replaceIntegerPushInstruction(clazz, offset, variableInstruction, variableIndex); in visitVariableInstruction()
261 replaceLongPushInstruction(clazz, offset, variableInstruction, variableIndex); in visitVariableInstruction()
269 replaceFloatPushInstruction(clazz, offset, variableInstruction, variableIndex); in visitVariableInstruction()
277 replaceDoublePushInstruction(clazz, offset, variableInstruction, variableIndex); in visitVariableInstruction()
492 for (int variableIndex = 0; variableIndex < maxVariableIndex; variableIndex++) in replaceIntegerPushInstruction()
494 if (pushedValue.equals(variables.load(variableIndex))) in replaceIntegerPushInstruction()
500 variableIndex); in replaceIntegerPushInstruction()
562 for (int variableIndex = 0; variableIndex < maxVariableIndex; variableIndex++) in replaceLongPushInstruction()
565 if (pushedValue.equals(variables.load(variableIndex)) && in replaceLongPushInstruction()
[all …]
DSimpleEnumUseSimplifier.java195 int variableIndex = variableInstruction.variableIndex; in visitVariableInstruction() local
212 variableIndex)); in visitVariableInstruction()
219 variableIndex); in visitVariableInstruction()
237 variableIndex)); in visitVariableInstruction()
797 int variableIndex) in replaceNullVariableProducers() argument
800 …partialEvaluator.getVariablesBefore(consumerOffset).getProducerValue(variableIndex).instructionOff… in replaceNullVariableProducers()
807 …partialEvaluator.getVariablesAfter(producerOffset).getValue(variableIndex).referenceValue().isNull… in replaceNullVariableProducers()
812 … new VariableInstruction(InstructionConstants.OP_ASTORE, variableIndex), in replaceNullVariableProducers()
813 … new VariableInstruction(InstructionConstants.OP_ISTORE, variableIndex)); in replaceNullVariableProducers()
DSimpleEnumUseChecker.java509 for (int variableIndex = 0; variableIndex < variablesSize; variableIndex++) in checkMixedVariablesBefore()
512 Value variable = variablesBefore.getValue(variableIndex); in checkMixedVariablesBefore()
518 variablesBefore.getProducerValue(variableIndex).instructionOffsetValue(); in checkMixedVariablesBefore()
540 … partialEvaluator.getVariablesAfter(producerOffset).getValue(variableIndex).referenceValue(); in checkMixedVariablesBefore()
549 markStoredComplexEnumType(producerOffset, variableIndex); in checkMixedVariablesBefore()
740 private void markStoredComplexEnumType(int offset, int variableIndex) in markStoredComplexEnumType() argument
743 partialEvaluator.getVariablesAfter(offset).getValue(variableIndex).referenceValue(); in markStoredComplexEnumType()
DVariableOptimizer.java319 private int firstLiveness(int startOffset, int endOffset, int variableIndex) in firstLiveness() argument
324 livenessAnalyzer.isAliveBefore(offset, variableIndex)) in firstLiveness()
338 private int lastLiveness(int startOffset, int endOffset, int variableIndex) in lastLiveness() argument
346 if (livenessAnalyzer.isAliveBefore(offset, variableIndex)) in lastLiveness()
DEvaluationShrinker.java645 markVariableProducers(offset, variableInstruction.variableIndex); in visitVariableInstruction()
704 markVariableInitializersBefore(offset, variableInstruction.variableIndex); in visitVariableInstruction()
1441 int variableIndex) in markVariableProducers() argument
1444 …partialEvaluator.getVariablesBefore(consumerOffset).getProducerValue(variableIndex).instructionOff… in markVariableProducers()
1469 int variableIndex) in markVariableInitializersBefore() argument
1475 …ePartialEvaluator.getVariablesBefore(consumerOffset).getProducerValue(variableIndex).instructionOf… in markVariableInitializersBefore()
1486 markVariableInitializersAfter(producerOffset, variableIndex); in markVariableInitializersBefore()
1500 int variableIndex) in markVariableInitializersAfter() argument
1506 if (isVariableInitialization(producerOffset, variableIndex)) in markVariableInitializersAfter()
1509 if (DEBUG) System.out.print(" Marking initialization of v"+variableIndex+" at "); in markVariableInitializersAfter()
[all …]
/external/proguard/src/proguard/classfile/instruction/
DVariableInstruction.java36 public int variableIndex; field in VariableInstruction
59 int variableIndex) in VariableInstruction() argument
61 this(opcode, variableIndex, 0); in VariableInstruction()
66 int variableIndex, in VariableInstruction() argument
70 this.variableIndex = variableIndex; in VariableInstruction()
85 this.variableIndex = variableInstruction.variableIndex; in copy()
224 if (variableIndex <= 3) in shrink()
228 …ructionConstants.OP_ILOAD: opcode = (byte)(InstructionConstants.OP_ILOAD_0 + variableIndex); break; in shrink()
229 …ructionConstants.OP_LLOAD: opcode = (byte)(InstructionConstants.OP_LLOAD_0 + variableIndex); break; in shrink()
230 …ructionConstants.OP_FLOAD: opcode = (byte)(InstructionConstants.OP_FLOAD_0 + variableIndex); break; in shrink()
[all …]
/external/proguard/src/proguard/optimize/peephole/
DVariableShrinker.java104 for (int variableIndex = parameterSize; variableIndex < maxLocals; variableIndex++) in visitCodeAttribute()
107 if (!variableUsageMarker.isVariableUsed(variableIndex)) in visitCodeAttribute()
111 System.out.println(" Deleting local variable #"+variableIndex); in visitCodeAttribute()
115 variableEditor.deleteVariable(variableIndex); in visitCodeAttribute()
/external/angle/src/compiler/translator/tree_ops/vulkan/
DRewriteArrayOfArrayOfOpaqueUniforms.cpp158 TIntermTyped *variableIndex = nullptr; in RewriteArrayOfArraySubscriptExpression() local
189 if (variableIndex == nullptr) in RewriteArrayOfArraySubscriptExpression()
191 variableIndex = indexExpression; in RewriteArrayOfArraySubscriptExpression()
195 variableIndex = new TIntermBinary(EOpAdd, variableIndex, indexExpression); in RewriteArrayOfArraySubscriptExpression()
209 if (constantOffset == 0 && variableIndex != nullptr) in RewriteArrayOfArraySubscriptExpression()
212 index = variableIndex; in RewriteArrayOfArraySubscriptExpression()
220 if (variableIndex) in RewriteArrayOfArraySubscriptExpression()
222 index = new TIntermBinary(EOpAdd, index, variableIndex); in RewriteArrayOfArraySubscriptExpression()
227 TOperator op = variableIndex ? EOpIndexIndirect : EOpIndexDirect; in RewriteArrayOfArraySubscriptExpression()
/external/proguard/src/proguard/optimize/
DParameterShrinker.java138 for (int variableIndex = oldParameterSize; variableIndex < maxLocals; variableIndex++) in visitCodeAttribute()
140 variableMap[variableIndex] = variableIndex; in visitCodeAttribute()
/external/proguard/src/proguard/optimize/info/
DVariableUsageMarker.java49 public boolean isVariableUsed(int variableIndex) in isVariableUsed() argument
51 return variableUsed[variableIndex]; in isVariableUsed()
88 variableUsed[variableInstruction.variableIndex] = true; in visitVariableInstruction()
93 variableUsed[variableInstruction.variableIndex + 1] = true; in visitVariableInstruction()
DParameterUsageMarker.java193 int parameterIndex = variableInstruction.variableIndex; in visitVariableInstruction()
243 public static void markParameterUsed(Method method, int variableIndex) in markParameterUsed() argument
248 info.setParameterUsed(variableIndex); in markParameterUsed()
269 public static boolean isParameterUsed(Method method, int variableIndex) in isParameterUsed() argument
273 info.isParameterUsed(variableIndex); in isParameterUsed()
/external/proguard/src/proguard/evaluation/
DProcessor.java653 int variableIndex = variableInstruction.variableIndex; in visitVariableInstruction() local
662 stack.push(variables.iload(variableIndex)); in visitVariableInstruction()
670 stack.push(variables.lload(variableIndex)); in visitVariableInstruction()
678 stack.push(variables.fload(variableIndex)); in visitVariableInstruction()
686 stack.push(variables.dload(variableIndex)); in visitVariableInstruction()
694 stack.push(variables.aload(variableIndex)); in visitVariableInstruction()
702 variables.store(variableIndex, stack.ipop()); in visitVariableInstruction()
710 variables.store(variableIndex, stack.lpop()); in visitVariableInstruction()
718 variables.store(variableIndex, stack.fpop()); in visitVariableInstruction()
726 variables.store(variableIndex, stack.dpop()); in visitVariableInstruction()
[all …]
DBasicInvocationUnit.java84 int variableIndex = 0; in enterMethod() local
97 variables.store(variableIndex++, value); in enterMethod()
121 variables.store(variableIndex++, value); in enterMethod()
126 variableIndex++; in enterMethod()
/external/proguard/src/proguard/classfile/attribute/preverification/
DNullType.java54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument
56 …sitor.visitVariablesNullType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
DLongType.java54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument
56 …sitor.visitVariablesLongType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
DIntegerType.java54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument
56 …or.visitVariablesIntegerType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
DUninitializedThisType.java54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument
56 …riablesUninitializedThisType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
DDoubleType.java54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument
56 …tor.visitVariablesDoubleType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
DFloatType.java54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument
56 …itor.visitVariablesFloatType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
DTopType.java54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument
56 …isitor.visitVariablesTopType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
DObjectType.java75 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument
77 …tor.visitVariablesObjectType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
DUninitializedType.java74 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument
76 …itVariablesUninitializedType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
/external/proguard/src/proguard/classfile/editor/
DVariableEditor.java75 public void deleteVariable(int variableIndex) in deleteVariable() argument
77 deleted[variableIndex] = true; in deleteVariable()
DVariableRemapper.java190 int oldVariableIndex = variableInstruction.variableIndex; in visitVariableInstruction()
210 private int remapVariable(int variableIndex) in remapVariable() argument
212 return variableMap[variableIndex]; in remapVariable()

12