Home
last modified time | relevance | path

Searched refs:moveType (Results 1 – 12 of 12) sorted by relevance

/external/r8/src/main/java/com/android/tools/r8/ir/optimize/
DMemberValuePropagation.java75 MoveType moveType = instruction.outValue().outType(); in constantReplacementFromProguardRule() local
77 assert moveType != MoveType.OBJECT; in constantReplacementFromProguardRule()
78 Value value = code.createValue(moveType, instruction.getDebugInfo()); in constantReplacementFromProguardRule()
80 ConstType.fromMoveType(moveType), value, rule.getReturnValue().getSingleValue()); in constantReplacementFromProguardRule()
87 Value value = code.createValue(moveType, instruction.getDebugInfo()); in constantReplacementFromProguardRule()
167 MoveType moveType = invoke.outType(); in rewriteWithConstantValues() local
168 if (moveType == MoveType.OBJECT) { in rewriteWithConstantValues()
170 moveType = MoveType.SINGLE; in rewriteWithConstantValues()
172 Value value = code.createValue(moveType); in rewriteWithConstantValues()
175 new ConstNumber(ConstType.fromMoveType(moveType), value, constant); in rewriteWithConstantValues()
DOutliner.java839 MoveType moveType = outline.arguments.get(i).outType(); in buildPrelude() local
840 builder.addNonThisArgument(i, moveType); in buildPrelude()
/external/r8/src/main/java/com/android/tools/r8/ir/desugar/
DLambdaBridgeMethodSourceCode.java54 MoveType moveType = MoveType.fromDexType(proto.returnType); in prepareInstructions() local
55 int tempValue = nextRegister(moveType); in prepareInstructions()
56 add(builder -> builder.addMoveResult(moveType, tempValue)); in prepareInstructions()
57 add(builder -> builder.addReturn(moveType, tempValue)); in prepareInstructions()
DAccessorMethodSourceCode.java119 MoveType moveType = MoveType.fromDexType(proto.returnType); in prepareInstructions() local
120 int tempValue = nextRegister(moveType); in prepareInstructions()
121 add(builder -> builder.addMoveResult(moveType, tempValue)); in prepareInstructions()
122 add(builder -> builder.addReturn(moveType, tempValue)); in prepareInstructions()
DLambdaMainMethodSourceCode.java226 MoveType moveType = MemberType.moveTypeFor(memberType); in prepareInstructions() local
227 int register = nextRegister(moveType); in prepareInstructions()
229 argMoveTypes.add(moveType); in prepareInstructions()
458 MoveType moveType = MoveType.fromDexType(primitiveType); in addPrimitiveUnboxing() local
459 int result = nextRegister(moveType); in addPrimitiveUnboxing()
460 add(builder -> builder.addMoveResult(moveType, result)); in addPrimitiveUnboxing()
470 MoveType moveType = MoveType.fromDexType(primitiveType); in addPrimitiveBoxing() local
471 List<MoveType> argMoveTypes = Collections.singletonList(moveType); in addPrimitiveBoxing()
/external/r8/src/main/java/com/android/tools/r8/ir/code/
DConstType.java35 public static ConstType fromMoveType(MoveType moveType) { in fromMoveType() argument
36 switch (moveType) { in fromMoveType()
45 throw new Unreachable("Invalid move type '" + moveType + "'"); in fromMoveType()
DIRCode.java370 public Value createValue(MoveType moveType, Value.DebugInfo debugInfo) { in createValue() argument
371 return new Value(valueNumberGenerator.next(), moveType, debugInfo); in createValue()
374 public Value createValue(MoveType moveType) { in createValue() argument
375 return createValue(moveType, null); in createValue()
/external/r8/src/main/java/com/android/tools/r8/ir/synthetic/
DForwardMethodSourceCode.java99 MoveType moveType = MoveType.fromDexType(proto.returnType); in prepareInstructions() local
100 int tempValue = nextRegister(moveType); in prepareInstructions()
101 add(builder -> builder.addMoveResult(moveType, tempValue)); in prepareInstructions()
102 add(builder -> builder.addReturn(moveType, tempValue)); in prepareInstructions()
DSingleBlockSourceCode.java163 MoveType moveType = MoveType.fromDexType(parameters[i]); in buildPrelude() local
164 Value paramValue = builder.writeRegister(paramRegisters[i], moveType, NO_THROW); in buildPrelude()
/external/r8/src/main/java/com/android/tools/r8/ir/conversion/
DJarSourceCode.java269 initializedLocals.put(register, moveType(thisType)); in buildPrelude()
272 MoveType moveType = moveType(type); in buildPrelude() local
274 builder.addNonThisArgument(register, moveType); in buildPrelude()
275 argumentRegister += moveType.requiredRegisters(); in buildPrelude()
276 initializedLocals.put(register, moveType); in buildPrelude()
302 assert exitingLocalType == null || exitingLocalType == moveType(localType); in buildPrelude()
306 initializedLocals.put(localRegister, moveType(localType)); in buildPrelude()
774 private static MoveType moveType(Type type) { in moveType() method in JarSourceCode
1910 builder.addMove(moveType(value.type), copy, value.register); in build()
1924 builder.addMove(moveType(value1.type), stack0, stack1); in build()
[all …]
DIRBuilder.java495 public void addNonThisArgument(int register, MoveType moveType) {
498 Value value = writeRegister(register, moveType, ThrowingInfo.NO_THROW, info);
518 MoveType moveType = MoveType.fromDexType(local.type);
519 Value in = readRegisterIgnoreLocal(register, moveType);
522 addDebugLocalWrite(moveType, register, in);
541 MoveType moveType = MoveType.fromDexType(local.type);
544 Value in = readRegisterIgnoreLocal(register, moveType);
948 MoveType moveType = MoveType.fromTypeDescriptorChar(shorty.charAt(i));
949 arguments.add(readRegister(argumentRegisters[registerIndex], moveType));
950 registerIndex += moveType.requiredRegisters();
[all …]
DDexSourceCode.java240 MoveType moveType = MoveType.fromTypeDescriptorChar(shorty.charAt(i)); in computeArgumentTypes() local
241 types.add(moveType); in computeArgumentTypes()