/art/compiler/dex/quick/ |
D | quick_compiler.cc | 138 Instruction::NOP, 139 Instruction::MOVE, 140 Instruction::MOVE_FROM16, 141 Instruction::MOVE_16, 142 Instruction::MOVE_WIDE, 143 Instruction::MOVE_WIDE_FROM16, 144 Instruction::MOVE_WIDE_16, 145 Instruction::MOVE_OBJECT, 146 Instruction::MOVE_OBJECT_FROM16, 147 Instruction::MOVE_OBJECT_16, [all …]
|
D | mir_to_lir.cc | 252 case InlineMethodAnalyser::IGetVariant(Instruction::IGET): in GenSpecialIGet() 255 case InlineMethodAnalyser::IGetVariant(Instruction::IGET_WIDE): in GenSpecialIGet() 258 case InlineMethodAnalyser::IGetVariant(Instruction::IGET_OBJECT): in GenSpecialIGet() 261 case InlineMethodAnalyser::IGetVariant(Instruction::IGET_SHORT): in GenSpecialIGet() 264 case InlineMethodAnalyser::IGetVariant(Instruction::IGET_CHAR): in GenSpecialIGet() 267 case InlineMethodAnalyser::IGetVariant(Instruction::IGET_BYTE): in GenSpecialIGet() 270 case InlineMethodAnalyser::IGetVariant(Instruction::IGET_BOOLEAN): in GenSpecialIGet() 324 case InlineMethodAnalyser::IPutVariant(Instruction::IPUT): in GenSpecialIPut() 327 case InlineMethodAnalyser::IPutVariant(Instruction::IPUT_WIDE): in GenSpecialIPut() 330 case InlineMethodAnalyser::IPutVariant(Instruction::IPUT_OBJECT): in GenSpecialIPut() [all …]
|
/art/runtime/ |
D | dex_instruction_utils.h | 52 constexpr bool IsInstructionReturn(Instruction::Code opcode) { in IsInstructionReturn() 53 return Instruction::RETURN_VOID <= opcode && opcode <= Instruction::RETURN_OBJECT; in IsInstructionReturn() 56 constexpr bool IsInstructionInvoke(Instruction::Code opcode) { in IsInstructionInvoke() 57 return Instruction::INVOKE_VIRTUAL <= opcode && opcode <= Instruction::INVOKE_INTERFACE_RANGE && in IsInstructionInvoke() 58 opcode != Instruction::RETURN_VOID_NO_BARRIER; in IsInstructionInvoke() 61 constexpr bool IsInstructionQuickInvoke(Instruction::Code opcode) { in IsInstructionQuickInvoke() 62 return opcode == Instruction::INVOKE_VIRTUAL_QUICK || in IsInstructionQuickInvoke() 63 opcode == Instruction::INVOKE_VIRTUAL_RANGE_QUICK; in IsInstructionQuickInvoke() 66 constexpr bool IsInstructionInvokeStatic(Instruction::Code opcode) { in IsInstructionInvokeStatic() 67 return opcode == Instruction::INVOKE_STATIC || opcode == Instruction::INVOKE_STATIC_RANGE; in IsInstructionInvokeStatic() [all …]
|
D | dex_instruction-inl.h | 27 inline bool Instruction::HasVRegA() const { in HasVRegA() 57 inline int32_t Instruction::VRegA() const { in VRegA() 89 inline int8_t Instruction::VRegA_10t(uint16_t inst_data) const { in VRegA_10t() 94 inline uint8_t Instruction::VRegA_10x(uint16_t inst_data) const { in VRegA_10x() 99 inline uint4_t Instruction::VRegA_11n(uint16_t inst_data) const { in VRegA_11n() 104 inline uint8_t Instruction::VRegA_11x(uint16_t inst_data) const { in VRegA_11x() 109 inline uint4_t Instruction::VRegA_12x(uint16_t inst_data) const { in VRegA_12x() 114 inline int16_t Instruction::VRegA_20t() const { in VRegA_20t() 119 inline uint8_t Instruction::VRegA_21c(uint16_t inst_data) const { in VRegA_21c() 124 inline uint8_t Instruction::VRegA_21h(uint16_t inst_data) const { in VRegA_21h() [all …]
|
D | common_throws.cc | 367 const Instruction* instr = Instruction::At(&code->insns_[throw_dex_pc]); in ThrowNullPointerExceptionFromDexPC() 369 case Instruction::INVOKE_DIRECT: in ThrowNullPointerExceptionFromDexPC() 372 case Instruction::INVOKE_DIRECT_RANGE: in ThrowNullPointerExceptionFromDexPC() 375 case Instruction::INVOKE_VIRTUAL: in ThrowNullPointerExceptionFromDexPC() 378 case Instruction::INVOKE_VIRTUAL_RANGE: in ThrowNullPointerExceptionFromDexPC() 381 case Instruction::INVOKE_INTERFACE: in ThrowNullPointerExceptionFromDexPC() 384 case Instruction::INVOKE_INTERFACE_RANGE: in ThrowNullPointerExceptionFromDexPC() 387 case Instruction::INVOKE_VIRTUAL_QUICK: in ThrowNullPointerExceptionFromDexPC() 388 case Instruction::INVOKE_VIRTUAL_RANGE_QUICK: { in ThrowNullPointerExceptionFromDexPC() 402 case Instruction::IGET: in ThrowNullPointerExceptionFromDexPC() [all …]
|
/art/compiler/optimizing/ |
D | ssa_test.cc | 127 Instruction::CONST_4 | 0 | 0, in TEST() 128 Instruction::IF_EQ, 3, in TEST() 129 Instruction::GOTO | 0x100, in TEST() 130 Instruction::RETURN_VOID); in TEST() 158 Instruction::CONST_4 | 0 | 0, in TEST() 159 Instruction::IF_EQ, 3, in TEST() 160 Instruction::CONST_4 | 4 << 12 | 0, in TEST() 161 Instruction::RETURN | 0 << 8); in TEST() 189 Instruction::CONST_4 | 0 | 0, in TEST() 190 Instruction::IF_EQ, 4, in TEST() [all …]
|
D | liveness_test.cc | 95 Instruction::CONST_4 | 0 | 0, in TEST() 96 Instruction::RETURN_VOID); in TEST() 117 Instruction::CONST_4 | 0 | 0, in TEST() 118 Instruction::RETURN); in TEST() 143 Instruction::CONST_4 | 3 << 12 | 0, in TEST() 144 Instruction::CONST_4 | 4 << 12 | 1 << 8, in TEST() 145 Instruction::ADD_INT_2ADDR | 1 << 12, in TEST() 146 Instruction::GOTO | 0x100, in TEST() 147 Instruction::RETURN); in TEST() 190 Instruction::CONST_4 | 0 | 0, in TEST() [all …]
|
D | linearize_test.cc | 77 Instruction::CONST_4 | 0 | 0, in TEST() 78 Instruction::IF_EQ, 5, in TEST() 79 Instruction::IF_EQ, 0xFFFE, in TEST() 80 Instruction::GOTO | 0xFE00, in TEST() 81 Instruction::RETURN_VOID); in TEST() 102 Instruction::CONST_4 | 0 | 0, in TEST() 103 Instruction::IF_EQ, 3, in TEST() 104 Instruction::RETURN_VOID, in TEST() 105 Instruction::IF_EQ, 0xFFFD, in TEST() 106 Instruction::GOTO | 0xFE00); in TEST() [all …]
|
D | dominator_test.cc | 55 Instruction::RETURN_VOID); // Block number 1 in TEST() 68 Instruction::GOTO | 0x100, // Block number 1 in TEST() 69 Instruction::RETURN_VOID); // Block number 2 in TEST() 83 Instruction::GOTO | 0x100, // Block number 1 in TEST() 84 Instruction::GOTO | 0x100, // Block number 2 in TEST() 85 Instruction::RETURN_VOID); // Block number 3 in TEST() 100 Instruction::GOTO | 0x200, // Block number 1 in TEST() 101 Instruction::RETURN_VOID, // Block number 2 in TEST() 102 Instruction::GOTO | 0xFF00); // Block number 3 in TEST() 115 Instruction::GOTO_16, 3, in TEST() [all …]
|
D | pretty_printer_test.cc | 45 Instruction::RETURN_VOID); in TEST() 73 Instruction::GOTO | 0x100, in TEST() 74 Instruction::RETURN_VOID); in TEST() 94 Instruction::GOTO | 0x100, in TEST() 95 Instruction::GOTO | 0x100, in TEST() 96 Instruction::RETURN_VOID); in TEST() 116 Instruction::GOTO | 0x200, in TEST() 117 Instruction::RETURN_VOID, in TEST() 118 Instruction::GOTO | 0xFF00); in TEST() 123 Instruction::GOTO_16, 3, in TEST() [all …]
|
D | find_loops_test.cc | 43 Instruction::CONST_4 | 0 | 0, in TEST() 44 Instruction::RETURN_VOID); in TEST() 56 Instruction::CONST_4 | 0 | 0, in TEST() 57 Instruction::RETURN); in TEST() 69 Instruction::CONST_4 | 3 << 12 | 0, in TEST() 70 Instruction::CONST_4 | 4 << 12 | 1 << 8, in TEST() 71 Instruction::ADD_INT_2ADDR | 1 << 12, in TEST() 72 Instruction::GOTO | 0x100, in TEST() 73 Instruction::RETURN); in TEST() 85 Instruction::CONST_4 | 0 | 0, in TEST() [all …]
|
D | codegen_test.cc | 272 const uint16_t data[] = ZERO_REGISTER_CODE_ITEM(Instruction::RETURN_VOID); in TEST() 278 Instruction::GOTO | 0x100, in TEST() 279 Instruction::RETURN_VOID); in TEST() 286 Instruction::GOTO | 0x100, in TEST() 287 Instruction::GOTO | 0x100, in TEST() 288 Instruction::RETURN_VOID); in TEST() 295 Instruction::GOTO | 0x200, in TEST() 296 Instruction::RETURN_VOID, in TEST() 297 Instruction::GOTO | 0xFF00); in TEST() 302 Instruction::GOTO_16, 3, in TEST() [all …]
|
D | suspend_check_test.cc | 48 Instruction::NOP, in TEST() 49 Instruction::GOTO | 0xFF00); in TEST() 56 Instruction::GOTO_32, 0, 0); in TEST() 63 Instruction::CONST_4 | 0 | 0, in TEST() 64 Instruction::IF_EQ, 0xFFFF, in TEST() 65 Instruction::RETURN_VOID); in TEST() 72 Instruction::CONST_4 | 0 | 0, in TEST() 73 Instruction::IF_NE, 0xFFFF, in TEST() 74 Instruction::RETURN_VOID); in TEST() 81 Instruction::CONST_4 | 0 | 0, in TEST() [all …]
|
D | constant_folding_test.cc | 89 Instruction::CONST_4 | 0 << 8 | 1 << 12, in TEST() 90 Instruction::NEG_INT | 1 << 8 | 0 << 12, in TEST() 91 Instruction::RETURN | 1 << 8); in TEST() 147 Instruction::CONST_4 | 0 << 8 | 1 << 12, in TEST() 148 Instruction::CONST_4 | 1 << 8 | 2 << 12, in TEST() 149 Instruction::ADD_INT | 2 << 8, 0 | 1 << 8, in TEST() 150 Instruction::RETURN | 2 << 8); in TEST() 213 Instruction::CONST_4 | 0 << 8 | 1 << 12, in TEST() 214 Instruction::CONST_4 | 1 << 8 | 2 << 12, in TEST() 215 Instruction::ADD_INT_2ADDR | 0 << 8 | 1 << 12, in TEST() [all …]
|
D | builder.cc | 74 SwitchTable(const Instruction& instruction, uint32_t dex_pc, bool sparse) in SwitchTable() 79 CHECK_EQ(table[0], static_cast<uint16_t>(Instruction::kSparseSwitchSignature)); in SwitchTable() 81 CHECK_EQ(table[0], static_cast<uint16_t>(Instruction::kPackedSwitchSignature)); in SwitchTable() 125 const Instruction& instruction_; 191 void HGraphBuilder::If_22t(const Instruction& instruction, uint32_t dex_pc) { in If_22t() 210 void HGraphBuilder::If_21t(const Instruction& instruction, uint32_t dex_pc) { in If_21t() 320 const Instruction& instruction = *Instruction::At(code_ptr); in BuildGraph() 369 const Instruction& instruction = *Instruction::At(code_ptr); in ComputeBranchTargets() 392 SwitchTable table(instruction, dex_pc, instruction.Opcode() == Instruction::SPARSE_SWITCH); in ComputeBranchTargets() 442 void HGraphBuilder::Unop_12x(const Instruction& instruction, Primitive::Type type) { in Unop_12x() [all …]
|
D | dead_code_elimination_test.cc | 74 Instruction::CONST_4 | 1 << 8 | 1 << 12, in TEST() 75 Instruction::CONST_4 | 0 << 8 | 0 << 12, in TEST() 76 Instruction::IF_GEZ | 1 << 8, 3, in TEST() 77 Instruction::MOVE | 0 << 8 | 1 << 12, in TEST() 78 Instruction::ADD_INT | 2 << 8, 0 | 1 << 8, in TEST() 79 Instruction::RETURN_VOID); in TEST() 136 Instruction::CONST_4 | 0 << 8 | 0 << 12, in TEST() 137 Instruction::CONST_4 | 1 << 8 | 1 << 12, in TEST() 138 Instruction::ADD_INT | 2 << 8, 0 | 1 << 8, in TEST() 139 Instruction::GOTO | 4 << 8, in TEST() [all …]
|
/art/compiler/dex/ |
D | global_value_numbering_test.cc | 62 Instruction::Code opcode; 135 { bb, static_cast<Instruction::Code>(kMirOpPhi), 0, 0u, 2u, { src1, src2 }, 1, { reg } } 253 } else if (def->opcode == static_cast<Instruction::Code>(kMirOpPhi)) { in DoPrepareMIRs() 552 DEF_UNIQUE_REF(3, Instruction::NEW_INSTANCE, 100u), in TEST_F() 553 DEF_IGET(3, Instruction::IGET, 1u, 100u, 0u), in TEST_F() 554 DEF_IGET(6, Instruction::IGET, 2u, 100u, 0u), // Same as at the top. in TEST_F() 556 DEF_UNIQUE_REF(3, Instruction::NEW_INSTANCE, 200u), in TEST_F() 557 DEF_IGET(4, Instruction::IGET, 4u, 200u, 1u), in TEST_F() 558 DEF_IGET(6, Instruction::IGET, 5u, 200u, 1u), // Same as at the left side. in TEST_F() 560 DEF_UNIQUE_REF(3, Instruction::NEW_INSTANCE, 300u), in TEST_F() [all …]
|
D | local_value_numbering_test.cc | 46 Instruction::Code opcode; 247 DEF_IGET(Instruction::IGET, 0u, 10u, 0u), in TEST_F() 248 DEF_IGET(Instruction::IGET, 1u, 10u, 0u), in TEST_F() 249 DEF_INVOKE1(Instruction::INVOKE_VIRTUAL, 11u), in TEST_F() 250 DEF_IGET(Instruction::IGET, 2u, 10u, 0u), in TEST_F() 271 DEF_IGET(Instruction::IGET_OBJECT, 0u, 10u, 0u), in TEST_F() 272 DEF_IPUT(Instruction::IPUT_OBJECT, 1u, 11u, 0u), // May alias. in TEST_F() 273 DEF_IGET(Instruction::IGET_OBJECT, 2u, 10u, 0u), in TEST_F() 274 DEF_IGET(Instruction::IGET, 3u, 0u, 1u), in TEST_F() 275 DEF_IGET(Instruction::IGET, 4u, 2u, 1u), in TEST_F() [all …]
|
D | dex_to_dex_compiler.cc | 61 void CompileReturnVoid(Instruction* inst, uint32_t dex_pc); 66 Instruction* CompileCheckCast(Instruction* inst, uint32_t dex_pc); 74 void CompileInstanceFieldAccess(Instruction* inst, uint32_t dex_pc, 75 Instruction::Code new_opcode, bool is_put); 83 void CompileInvokeVirtual(Instruction* inst, uint32_t dex_pc, 84 Instruction::Code new_opcode, bool is_range); 98 Instruction* inst = const_cast<Instruction*>(Instruction::At(insns)); in Compile() 101 inst = const_cast<Instruction*>(inst->Next()), dex_pc = inst->GetDexPc(insns)) { in Compile() 103 case Instruction::RETURN_VOID: in Compile() 107 case Instruction::CHECK_CAST: in Compile() [all …]
|
D | mir_optimization_test.cc | 54 Instruction::Code opcode; 507 DEF_SGET_SPUT(3u, Instruction::SPUT, 0u, 5u), // Unresolved. in TEST_F() 508 DEF_SGET_SPUT(3u, Instruction::SPUT, 0u, 0u), in TEST_F() 509 DEF_SGET_SPUT(3u, Instruction::SGET, 0u, 1u), in TEST_F() 510 DEF_SGET_SPUT(3u, Instruction::SGET, 0u, 2u), in TEST_F() 511 DEF_SGET_SPUT(3u, Instruction::SGET, 0u, 5u), // Unresolved. in TEST_F() 512 DEF_SGET_SPUT(3u, Instruction::SGET, 0u, 0u), in TEST_F() 513 DEF_SGET_SPUT(3u, Instruction::SGET, 0u, 1u), in TEST_F() 514 DEF_SGET_SPUT(3u, Instruction::SGET, 0u, 2u), in TEST_F() 515 DEF_SGET_SPUT(3u, Instruction::SGET, 0u, 5u), // Unresolved. in TEST_F() [all …]
|
D | gvn_dead_code_elimination.cc | 509 mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpNop); in KillMIR() 517 mir->dalvikInsn.opcode = static_cast<Instruction::Code>( in ChangeBinOp2AddrToPlainBinOp() 518 mir->dalvikInsn.opcode - Instruction::ADD_INT_2ADDR + Instruction::ADD_INT); in ChangeBinOp2AddrToPlainBinOp() 524 phi->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpPhi); in CreatePhi() 1065 case Instruction::NOP: in RecordMIR() 1074 case Instruction::RETURN_VOID: in RecordMIR() 1075 case Instruction::RETURN: in RecordMIR() 1076 case Instruction::RETURN_OBJECT: in RecordMIR() 1077 case Instruction::RETURN_WIDE: in RecordMIR() 1078 case Instruction::GOTO: in RecordMIR() [all …]
|
D | local_value_numbering.cc | 30 static constexpr uint16_t kInvokeMemoryVersionBumpOp = Instruction::INVOKE_VIRTUAL; 31 static constexpr uint16_t kUnresolvedSFieldOp = Instruction::SGET; 32 static constexpr uint16_t kResolvedSFieldOp = Instruction::SGET_WIDE; 33 static constexpr uint16_t kUnresolvedIFieldOp = Instruction::IGET; 34 static constexpr uint16_t kNonAliasingIFieldLocOp = Instruction::IGET_WIDE; 35 static constexpr uint16_t kNonAliasingIFieldInitialOp = Instruction::IGET_OBJECT; 36 static constexpr uint16_t kAliasingIFieldOp = Instruction::IGET_BOOLEAN; 37 static constexpr uint16_t kAliasingIFieldStartVersionOp = Instruction::IGET_BYTE; 38 static constexpr uint16_t kAliasingIFieldBumpVersionOp = Instruction::IGET_CHAR; 39 static constexpr uint16_t kNonAliasingArrayOp = Instruction::AGET; [all …]
|
D | type_inference_test.cc | 65 Instruction::Code opcode; 140 { bb, static_cast<Instruction::Code>(kMirOpPhi), 0, 0u, 2u, { src1, src2 }, 1, { reg } } 414 } else if (def->opcode == static_cast<Instruction::Code>(kMirOpPhi)) { in DoPrepareMIRs() 419 } else if (def->opcode == Instruction::CHECK_CAST) { in DoPrepareMIRs() 423 } else if (def->opcode == Instruction::NEW_ARRAY) { in DoPrepareMIRs() 648 DEF_IGET(3u, Instruction::IGET_BYTE, 0u, thiz, 0u), in TEST_F() 649 DEF_IGET(3u, Instruction::IGET_CHAR, 1u, thiz, 1u), in TEST_F() 650 DEF_IGET_WIDE(3u, Instruction::IGET_WIDE, 2u, thiz, 2u), in TEST_F() 651 DEF_IGET(3u, Instruction::IGET, 4u, thiz, 3u), in TEST_F() 652 DEF_IGET(3u, Instruction::IGET, 5u, thiz, 4u), in TEST_F() [all …]
|
/art/runtime/quick/ |
D | inline_method_analyser.cc | 36 static_assert(InlineMethodAnalyser::IsInstructionIGet(Instruction::IGET), "iget type"); 37 static_assert(InlineMethodAnalyser::IsInstructionIGet(Instruction::IGET_WIDE), "iget_wide type"); 38 static_assert(InlineMethodAnalyser::IsInstructionIGet(Instruction::IGET_OBJECT), 40 static_assert(InlineMethodAnalyser::IsInstructionIGet(Instruction::IGET_BOOLEAN), 42 static_assert(InlineMethodAnalyser::IsInstructionIGet(Instruction::IGET_BYTE), "iget_byte type"); 43 static_assert(InlineMethodAnalyser::IsInstructionIGet(Instruction::IGET_CHAR), "iget_char type"); 44 static_assert(InlineMethodAnalyser::IsInstructionIGet(Instruction::IGET_SHORT), "iget_short type"); 45 static_assert(InlineMethodAnalyser::IsInstructionIPut(Instruction::IPUT), "iput type"); 46 static_assert(InlineMethodAnalyser::IsInstructionIPut(Instruction::IPUT_WIDE), "iput_wide type"); 47 static_assert(InlineMethodAnalyser::IsInstructionIPut(Instruction::IPUT_OBJECT), [all …]
|
/art/compiler/dex/quick/mips/ |
D | fp_mips.cc | 26 void MipsMir2Lir::GenArithOpFloat(Instruction::Code opcode, RegLocation rl_dest, in GenArithOpFloat() 36 case Instruction::ADD_FLOAT_2ADDR: in GenArithOpFloat() 37 case Instruction::ADD_FLOAT: in GenArithOpFloat() 40 case Instruction::SUB_FLOAT_2ADDR: in GenArithOpFloat() 41 case Instruction::SUB_FLOAT: in GenArithOpFloat() 44 case Instruction::DIV_FLOAT_2ADDR: in GenArithOpFloat() 45 case Instruction::DIV_FLOAT: in GenArithOpFloat() 48 case Instruction::MUL_FLOAT_2ADDR: in GenArithOpFloat() 49 case Instruction::MUL_FLOAT: in GenArithOpFloat() 52 case Instruction::REM_FLOAT_2ADDR: in GenArithOpFloat() [all …]
|