Home
last modified time | relevance | path

Searched refs:asConstNumber (Results 1 – 18 of 18) sorted by relevance

/external/r8/src/main/java/com/android/tools/r8/ir/code/
DArithmeticBinop.java59 int left = leftValue().getConstInstruction().asConstNumber().getIntValue(); in fold()
60 int right = rightValue().getConstInstruction().asConstNumber().getIntValue(); in fold()
65 long left = leftValue().getConstInstruction().asConstNumber().getLongValue(); in fold()
66 long right = rightValue().getConstInstruction().asConstNumber().getLongValue(); in fold()
71 float left = leftValue().getConstInstruction().asConstNumber().getFloatValue(); in fold()
72 float right = rightValue().getConstInstruction().asConstNumber().getFloatValue(); in fold()
78 double left = leftValue().getConstInstruction().asConstNumber().getDoubleValue(); in fold()
79 double right = rightValue().getConstInstruction().asConstNumber().getDoubleValue(); in fold()
118 ConstNumber right = rightValue().getConstInstruction().asConstNumber(); in buildDex()
DLogicalBinop.java37 int left = leftValue().getConstInstruction().asConstNumber().getIntValue(); in fold()
38 int right = rightValue().getConstInstruction().asConstNumber().getIntValue(); in fold()
44 long left = leftValue().getConstInstruction().asConstNumber().getLongValue(); in fold()
48 right = rightValue().getConstInstruction().asConstNumber().getIntValue(); in fold()
50 right = rightValue().getConstInstruction().asConstNumber().getLongValue(); in fold()
94 ConstNumber right = rightValue().getConstInstruction().asConstNumber(); in buildDex()
DCmp.java155 long left = leftValue().getConstInstruction().asConstNumber().getLongValue(); in fold()
156 long right = rightValue().getConstInstruction().asConstNumber().getLongValue(); in fold()
165 float left = leftValue().getConstInstruction().asConstNumber().getFloatValue(); in fold()
166 float right = rightValue().getConstInstruction().asConstNumber().getFloatValue(); in fold()
174 double left = leftValue().getConstInstruction().asConstNumber().getDoubleValue(); in fold()
175 double right = rightValue().getConstInstruction().asConstNumber().getDoubleValue(); in fold()
DNeg.java33 int result = -source().getConstInstruction().asConstNumber().getIntValue(); in fold()
37 long result = -source().getConstInstruction().asConstNumber().getLongValue(); in fold()
41 float result = -source().getConstInstruction().asConstNumber().getFloatValue(); in fold()
46 double result = -source().getConstInstruction().asConstNumber().getDoubleValue(); in fold()
DSub.java115 value.getConstInstruction().asConstNumber().negativeIs16Bit(); in negativeFitsInDexInstruction()
123 ConstNumber left = leftValue().getConstInstruction().asConstNumber(); in maxInOutValueRegisterSize()
127 ConstNumber right = rightValue().getConstInstruction().asConstNumber(); in maxInOutValueRegisterSize()
163 ConstNumber left = leftValue().getConstInstruction().asConstNumber(); in buildDex()
178 ConstNumber right = rightValue().getConstInstruction().asConstNumber(); in buildDex()
DBinop.java60 value.getConstInstruction().asConstNumber().is16Bit(); in fitsInLit16Instruction()
66 value.getConstInstruction().asConstNumber().is8Bit(); in fitsInLit8Instruction()
73 return rightValue().getConstInstruction().asConstNumber().is8Bit() ? U8BIT_MAX : U4BIT_MAX; in maxInOutValueRegisterSize()
DConstNumber.java144 ConstNumber o = other.asConstNumber(); in identicalNonValueParts()
150 ConstNumber o = other.asConstNumber(); in compareNonValueParts()
186 public ConstNumber asConstNumber() { in asConstNumber() method in ConstNumber
DNot.java29 int result = ~(source().getConstInstruction().asConstNumber().getIntValue()); in fold()
34 long result = ~source().getConstInstruction().asConstNumber().getLongValue(); in fold()
DValue.java389 ConstNumber constNumber = getConstInstruction().asConstNumber(); in toString()
483 return value == getConstInstruction().asConstNumber().getIntValue(); in isValueInRange()
492 int value = getConstInstruction().asConstNumber().getIntValue(); in getValueRange()
496 long value = getConstInstruction().asConstNumber().getLongValue(); in getValueRange()
DArrayPut.java97 int newArraySize = newArraySizeValue.getConstInstruction().asConstNumber().getIntValue(); in instructionInstanceCanThrow()
98 int index = index().getConstInstruction().asConstNumber().getIntValue(); in instructionInstanceCanThrow()
DInstruction.java234 ConstNumber aNum = a.getConstInstruction().asConstNumber(); in identicalAfterRegisterAllocation()
235 ConstNumber bNum = b.getConstInstruction().asConstNumber(); in identicalAfterRegisterAllocation()
414 public ConstNumber asConstNumber() { in asConstNumber() method in Instruction
DRem.java91 return super.canBeFolded() && !rightValue().getConstInstruction().asConstNumber().isZero(); in canBeFolded()
DDiv.java91 return super.canBeFolded() && !rightValue().getConstInstruction().asConstNumber().isZero(); in canBeFolded()
DPhi.java265 value.definition.asConstNumber().isZero() && in isSingleConstZero()
/external/r8/src/main/java/com/android/tools/r8/ir/optimize/
DCodeRewriter.java512 int integerIndex = index.asConstNumber().getIntValue(); in extractIndexMapFrom()
593 if (ordinalsMap.put(staticPut.getField(), ordinal.asConstNumber().getIntValue()) != -1) { in extractOrdinalsMapFor()
662 long value = returnValue.definition.asConstNumber().getRawValue(); in identifyReturnsArgument()
716 && argument.getConstInstruction().asConstNumber().isZero()); in rewriteMoveResult()
837 ConstNumber definition = value.getConstInstruction().asConstNumber(); in splitRangedInvokeConstants()
862 ConstNumber definition = operand.getConstInstruction().asConstNumber(); in splitPhiConstants()
936 ConstNumber constNumber = instruction.asConstNumber(); in shortenLiveRanges()
1038 int index = arrayPut.index().getConstInstruction().asConstNumber().getIntValue(); in computeConstantArrayValues()
1043 ConstNumber value = arrayPut.source().getConstInstruction().asConstNumber(); in computeConstantArrayValues()
1064 int size = newArray.size().getConstInstruction().asConstNumber().getIntValue();
[all …]
DPeepholeOptimizer.java221 if (constantSpilledAtDefinition(current.asConstNumber(), allocator)) { in removeRedundantInstructions()
235 registerToNumber.put(outRegister, current.asConstNumber()); in removeRedundantInstructions()
/external/r8/src/main/java/com/android/tools/r8/ir/regalloc/
DRegisterMoveScheduler.java124 ConstNumber number = move.definition.asConstNumber(); in createMove()
/external/r8/src/main/java/com/android/tools/r8/ir/conversion/
DIRBuilder.java1395 if (in2.isConstant() && in2.getConstInstruction().asConstNumber().isIntegerNegativeOne(type)) {