Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 95) sorted by relevance

1234

/dalvik/dx/src/com/android/dx/io/instructions/
DFillArrayDataPayloadDecodedInstruction.java39 int opcode, Object data, int size, int elementWidth) { in FillArrayDataPayloadDecodedInstruction() argument
40 super(format, opcode, 0, null, 0, 0L); in FillArrayDataPayloadDecodedInstruction()
51 int opcode, byte[] data) { in FillArrayDataPayloadDecodedInstruction() argument
52 this(format, opcode, data, data.length, 1); in FillArrayDataPayloadDecodedInstruction()
59 int opcode, short[] data) { in FillArrayDataPayloadDecodedInstruction() argument
60 this(format, opcode, data, data.length, 2); in FillArrayDataPayloadDecodedInstruction()
67 int opcode, int[] data) { in FillArrayDataPayloadDecodedInstruction() argument
68 this(format, opcode, data, data.length, 4); in FillArrayDataPayloadDecodedInstruction()
75 int opcode, long[] data) { in FillArrayDataPayloadDecodedInstruction() argument
76 this(format, opcode, data, data.length, 8); in FillArrayDataPayloadDecodedInstruction()
DInstructionCodec.java51 int opcode = byte0(opcodeUnit); in FORMAT_10X() local
54 this, opcode, 0, null, in FORMAT_10X()
68 int opcode = byte0(opcodeUnit); in FORMAT_12X() local
72 this, opcode, 0, null, in FORMAT_12X()
89 int opcode = byte0(opcodeUnit); in FORMAT_11N() local
93 this, opcode, 0, null, in FORMAT_11N()
110 int opcode = byte0(opcodeUnit); in FORMAT_11X() local
113 this, opcode, 0, null, in FORMAT_11X()
129 int opcode = byte0(opcodeUnit); in FORMAT_10T() local
132 this, opcode, 0, null, in FORMAT_10T()
[all …]
DDecodedInstruction.java44 private final int opcode; field in DecodedInstruction
71 int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); in decode() local
72 InstructionCodec format = OpcodeInfo.getFormat(opcode); in decode()
101 public DecodedInstruction(InstructionCodec format, int opcode, in DecodedInstruction() argument
107 if (!Opcodes.isValidShape(opcode)) { in DecodedInstruction()
112 this.opcode = opcode; in DecodedInstruction()
124 return opcode; in getOpcode()
131 return (short) opcode; in getOpcodeUnit()
/dalvik/dx/src/com/android/dx/rop/code/
DRop.java53 private final int opcode; field in Rop
94 public Rop(int opcode, Type result, TypeList sources, in Rop() argument
118 this.opcode = opcode; in Rop()
141 public Rop(int opcode, Type result, TypeList sources, in Rop() argument
143 this(opcode, result, sources, exceptions, branchingness, false, in Rop()
159 public Rop(int opcode, Type result, TypeList sources, int branchingness, in Rop() argument
161 this(opcode, result, sources, StdTypeList.EMPTY, branchingness, false, in Rop()
176 public Rop(int opcode, Type result, TypeList sources, String nickname) { in Rop() argument
177 this(opcode, result, sources, StdTypeList.EMPTY, Rop.BRANCH_NONE, in Rop()
194 public Rop(int opcode, Type result, TypeList sources, TypeList exceptions, in Rop() argument
[all …]
DPlainInsn.java40 public PlainInsn(Rop opcode, SourcePosition position, in PlainInsn() argument
42 super(opcode, position, result, sources); in PlainInsn()
44 switch (opcode.getBranchingness()) { in PlainInsn()
47 …throw new IllegalArgumentException("opcode with invalid branchingness: " + opcode.getBranchingness… in PlainInsn()
51 if (result != null && opcode.getBranchingness() != Rop.BRANCH_NONE) { in PlainInsn()
66 public PlainInsn(Rop opcode, SourcePosition position, RegisterSpec result, in PlainInsn() argument
68 this(opcode, position, result, RegisterSpecList.make(source)); in PlainInsn()
130 int opcode = getOpcode().getOpcode(); in withSourceLiteral() local
131 if (opcode == RegOps.SUB && cst instanceof CstInteger) { in withSourceLiteral()
132 opcode = RegOps.ADD; in withSourceLiteral()
[all …]
DInsn.java32 private final Rop opcode; field in Insn
51 public Insn(Rop opcode, SourcePosition position, RegisterSpec result, in Insn() argument
53 if (opcode == null) { in Insn()
65 this.opcode = opcode; in Insn()
126 return opcode; in getOpcode()
158 if (opcode.getOpcode() == RegOps.MARK_LOCAL) { in getLocalAssignment()
193 return opcode.canThrow(); in canThrow()
280 return opcode == b.getOpcode() in contentEquals()
312 sb.append(opcode); in toStringWithInline()
344 sb.append(opcode.getNickname()); in toHumanWithInline()
DRegOps.java328 public static String opName(int opcode) { in opName() argument
329 switch (opcode) { in opName()
390 return "unknown-" + Hex.u1(opcode); in opName()
400 public static int flippedIfOpcode(final int opcode) { in flippedIfOpcode() argument
401 switch (opcode) { in flippedIfOpcode()
404 return opcode; in flippedIfOpcode()
414 throw new RuntimeException("Unrecognized IF regop: " + opcode); in flippedIfOpcode()
DDexTranslationAdvice.java58 public boolean hasConstantOperation(Rop opcode, in hasConstantOperation() argument
68 opcode.getOpcode() == RegOps.SUB) { in hasConstantOperation()
78 switch (opcode.getOpcode()) { in hasConstantOperation()
104 public boolean requiresSourcesInOrder(Rop opcode, in requiresSourcesInOrder() argument
107 return !disableSourcesInOrder && opcode.isCallLike() in requiresSourcesInOrder()
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DRop.java53 private final int opcode; field in Rop
94 public Rop(int opcode, Type result, TypeList sources, in Rop() argument
118 this.opcode = opcode; in Rop()
141 public Rop(int opcode, Type result, TypeList sources, in Rop() argument
143 this(opcode, result, sources, exceptions, branchingness, false, in Rop()
159 public Rop(int opcode, Type result, TypeList sources, int branchingness, in Rop() argument
161 this(opcode, result, sources, StdTypeList.EMPTY, branchingness, false, in Rop()
176 public Rop(int opcode, Type result, TypeList sources, String nickname) { in Rop() argument
177 this(opcode, result, sources, StdTypeList.EMPTY, Rop.BRANCH_NONE, in Rop()
194 public Rop(int opcode, Type result, TypeList sources, TypeList exceptions, in Rop() argument
[all …]
DInsn.java34 private final Rop opcode; field in Insn
53 public Insn(Rop opcode, SourcePosition position, RegisterSpec result, in Insn() argument
55 if (opcode == null) { in Insn()
67 this.opcode = opcode; in Insn()
127 return opcode; in getOpcode()
159 if (opcode.getOpcode() == RegOps.MARK_LOCAL) { in getLocalAssignment()
194 return opcode.canThrow(); in canThrow()
281 return opcode == b.getOpcode() in contentEquals()
313 sb.append(opcode); in toStringWithInline()
345 sb.append(opcode.getNickname()); in toHumanWithInline()
DRegOps.java312 public static String opName(int opcode) { in opName() argument
313 switch (opcode) { in opName()
372 return "unknown-" + Hex.u1(opcode); in opName()
382 public static int flippedIfOpcode(final int opcode) { in flippedIfOpcode() argument
383 switch (opcode) { in flippedIfOpcode()
386 return opcode; in flippedIfOpcode()
396 throw new RuntimeException("Unrecognized IF regop: " + opcode); in flippedIfOpcode()
DPlainInsn.java39 public PlainInsn(Rop opcode, SourcePosition position, in PlainInsn() argument
41 super(opcode, position, result, sources); in PlainInsn()
43 switch (opcode.getBranchingness()) { in PlainInsn()
50 if (result != null && opcode.getBranchingness() != Rop.BRANCH_NONE) { in PlainInsn()
65 public PlainInsn(Rop opcode, SourcePosition position, RegisterSpec result, in PlainInsn() argument
67 this(opcode, position, result, RegisterSpecList.make(source)); in PlainInsn()
/dalvik/dx/src/com/android/dx/cf/direct/
DCodeObserver.java66 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
72 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument
78 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument
84 if (opcode == ByteOps.IINC) { in visitLocal()
101 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument
105 visitNoArgs(opcode, offset, length, null); in visitConstant()
110 visitLiteralInt(opcode, offset, length, value); in visitConstant()
115 visitLiteralLong(opcode, offset, length, in visitConstant()
121 visitLiteralFloat(opcode, offset, length, in visitConstant()
127 visitLiteralDouble(opcode, offset, length, in visitConstant()
[all …]
/dalvik/opcode-gen/
Dregen-all37 ${progdir}/opcode-gen dx/src/com/android/dx/dex/code/Dops.java
38 ${progdir}/opcode-gen dx/src/com/android/dx/dex/code/RopToDop.java
39 ${progdir}/opcode-gen dx/src/com/android/dx/io/OpcodeInfo.java
40 ${progdir}/opcode-gen dx/src/com/android/dx/io/Opcodes.java
41 ${progdir}/opcode-gen libdex/DexOpcodes.cpp
42 ${progdir}/opcode-gen libdex/DexOpcodes.h
43 ${progdir}/opcode-gen libdex/InstrUtils.cpp
47 ${progdir}/opcode-gen \
49 ${progdir}/opcode-gen \
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DDop.java24 private final int opcode; field in Dop
49 public Dop(int opcode, int family, InsnFormat format, in Dop() argument
51 if ((opcode < DalvOps.MIN_VALUE) || (opcode > DalvOps.MAX_VALUE)) { in Dop()
67 this.opcode = opcode; in Dop()
86 return opcode; in getOpcode()
133 switch (opcode) { in getOppositeTest()
DDalvInsn.java37 private final Dop opcode; field in DalvInsn
59 Dop opcode; in makeMove() local
62 opcode = reference ? Dops.MOVE_OBJECT : in makeMove()
65 opcode = reference ? Dops.MOVE_OBJECT_FROM16 : in makeMove()
68 opcode = reference ? Dops.MOVE_OBJECT_16 : in makeMove()
72 return new SimpleInsn(opcode, position, in makeMove()
92 public DalvInsn(Dop opcode, SourcePosition position, in DalvInsn() argument
94 if (opcode == null) { in DalvInsn()
107 this.opcode = opcode; in DalvInsn()
122 sb.append(opcode.getName()); in toString()
[all …]
DTargetInsn.java41 public TargetInsn(Dop opcode, SourcePosition position, in TargetInsn() argument
43 super(opcode, position, registers); in TargetInsn()
54 public DalvInsn withOpcode(Dop opcode) { in withOpcode() argument
55 return new TargetInsn(opcode, getPosition(), getRegisters(), target); in withOpcode()
75 Dop opcode = getOpcode().getOppositeTest(); in withNewTargetAndReversed() local
77 return new TargetInsn(opcode, getPosition(), getRegisters(), target); in withNewTargetAndReversed()
DSimpleInsn.java37 public SimpleInsn(Dop opcode, SourcePosition position, in SimpleInsn() argument
39 super(opcode, position, registers); in SimpleInsn()
44 public DalvInsn withOpcode(Dop opcode) { in withOpcode() argument
45 return new SimpleInsn(opcode, getPosition(), getRegisters()); in withOpcode()
/dalvik/dx/src/com/android/dx/dex/code/
DDop.java27 private final int opcode; field in Dop
60 public Dop(int opcode, int family, int nextOpcode, InsnFormat format, in Dop() argument
62 if (!Opcodes.isValidShape(opcode)) { in Dop()
78 this.opcode = opcode; in Dop()
97 return opcode; in getOpcode()
134 return OpcodeInfo.getName(opcode); in getName()
156 switch (opcode) { in getOppositeTest()
DDalvInsn.java39 private final Dop opcode; field in DalvInsn
61 Dop opcode; in makeMove() local
64 opcode = reference ? Dops.MOVE_OBJECT : in makeMove()
67 opcode = reference ? Dops.MOVE_OBJECT_FROM16 : in makeMove()
70 opcode = reference ? Dops.MOVE_OBJECT_16 : in makeMove()
74 return new SimpleInsn(opcode, position, in makeMove()
94 public DalvInsn(Dop opcode, SourcePosition position, in DalvInsn() argument
96 if (opcode == null) { in DalvInsn()
109 this.opcode = opcode; in DalvInsn()
124 sb.append(opcode.getName()); in toString()
[all …]
DTargetInsn.java41 public TargetInsn(Dop opcode, SourcePosition position, in TargetInsn() argument
43 super(opcode, position, registers); in TargetInsn()
54 public DalvInsn withOpcode(Dop opcode) { in withOpcode() argument
55 return new TargetInsn(opcode, getPosition(), getRegisters(), target); in withOpcode()
75 Dop opcode = getOpcode().getOppositeTest(); in withNewTargetAndReversed() local
77 return new TargetInsn(opcode, getPosition(), getRegisters(), target); in withNewTargetAndReversed()
DSimpleInsn.java37 public SimpleInsn(Dop opcode, SourcePosition position, in SimpleInsn() argument
39 super(opcode, position, registers); in SimpleInsn()
44 public DalvInsn withOpcode(Dop opcode) { in withOpcode() argument
45 return new SimpleInsn(opcode, getPosition(), getRegisters()); in withOpcode()
/dalvik/dx/src/com/android/dx/cf/code/
DSimulator.java256 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
257 throw new SimException("invalid opcode " + Hex.u1(opcode)); in visitInvalid()
262 public void visitNoArgs(int opcode, int offset, int length, in visitNoArgs() argument
264 switch (opcode) { in visitNoArgs()
436 if (opcode == ByteOps.DUP2) { in visitNoArgs()
550 visitInvalid(opcode, offset, length); in visitNoArgs()
556 machine.run(frame, offset, opcode); in visitNoArgs()
583 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument
600 (opcode == ByteOps.ISTORE) ? (offset + length) : offset; in visitLocal()
617 switch (opcode) { in visitLocal()
[all …]
DBytecodeArray.java223 int opcode = bytes.getUnsignedByte(offset); in parseInstruction() local
224 int info = ByteOps.opInfo(opcode); in parseInstruction()
227 switch (opcode) { in parseInstruction()
229 visitor.visitNoArgs(opcode, offset, 1, Type.VOID); in parseInstruction()
375 int idx = opcode - ByteOps.ILOAD_0; in parseInstruction()
384 int idx = opcode - ByteOps.LLOAD_0; in parseInstruction()
393 int idx = opcode - ByteOps.FLOAD_0; in parseInstruction()
402 int idx = opcode - ByteOps.DLOAD_0; in parseInstruction()
411 int idx = opcode - ByteOps.ALOAD_0; in parseInstruction()
490 int idx = opcode - ByteOps.ISTORE_0; in parseInstruction()
[all …]
/dalvik/dx/src/com/android/dx/ssa/
DLiteralOpUpgrader.java99 Rop opcode = originalRopInsn.getOpcode(); in run()
110 if (opcode.getBranchingness() == Rop.BRANCH_IF) { in run()
116 RegOps.flippedIfOpcode(opcode.getOpcode()), null); in run()
119 opcode.getOpcode(), null); in run()
122 opcode, sources.get(0), sources.get(1))) { in run()
124 } else if (opcode.isCommutative() in run()
126 opcode, sources.get(1), sources.get(0))) { in run()
150 Rop opcode = originalRopInsn.getOpcode(); in tryReplacingWithConstant() local
154 opcode.getOpcode() != RegOps.CONST) { in tryReplacingWithConstant()
162 if (opcode.getOpcode() == RegOps.MOVE_RESULT_PSEUDO) { in tryReplacingWithConstant()

1234