/aosp12/art/tools/veridex/ |
H A D | flow_analysis.cc | 227 const Instruction& inst = *Instruction::At(insns); in AnalyzeCode() 274 case Instruction::CONST: { in ProcessDexInstruction() 297 case Instruction::MOVE: in ProcessDexInstruction() 384 case Instruction::GOTO: in ProcessDexInstruction() 385 case Instruction::GOTO_16: in ProcessDexInstruction() 456 case Instruction::OR_INT: in ProcessDexInstruction() 568 case Instruction::NOP: in ProcessDexInstruction() 571 case Instruction::IGET: in ProcessDexInstruction() 582 case Instruction::IPUT: in ProcessDexInstruction() 593 case Instruction::SGET: in ProcessDexInstruction() [all …]
|
H A D | hidden_api_finder.cc | 119 case Instruction::IGET: in CollectAccesses() 120 case Instruction::IGET_WIDE: in CollectAccesses() 123 case Instruction::IGET_BYTE: in CollectAccesses() 124 case Instruction::IGET_CHAR: in CollectAccesses() 130 case Instruction::IPUT: in CollectAccesses() 131 case Instruction::IPUT_WIDE: in CollectAccesses() 134 case Instruction::IPUT_BYTE: in CollectAccesses() 135 case Instruction::IPUT_CHAR: in CollectAccesses() 141 case Instruction::SGET: in CollectAccesses() 142 case Instruction::SGET_WIDE: in CollectAccesses() [all …]
|
/aosp12/art/libdexfile/dex/ |
H A D | dex_instruction_utils.h | 76 return Instruction::GOTO <= opcode && opcode <= Instruction::GOTO_32; in IsInstructionGoto() 80 return Instruction::IF_EQ <= opcode && opcode <= Instruction::IF_LE; in IsInstructionIfCc() 88 return Instruction::IGET <= code && code <= Instruction::IGET_SHORT; in IsInstructionIGet() 92 return Instruction::IPUT <= code && code <= Instruction::IPUT_SHORT; in IsInstructionIPut() 96 return Instruction::SGET <= code && code <= Instruction::SGET_SHORT; in IsInstructionSGet() 100 return Instruction::SPUT <= code && code <= Instruction::SPUT_SHORT; in IsInstructionSPut() 104 return Instruction::AGET <= code && code <= Instruction::AGET_SHORT; in IsInstructionAGet() 108 return Instruction::APUT <= code && code <= Instruction::APUT_SHORT; in IsInstructionAPut() 112 return Instruction::IGET <= code && code <= Instruction::IPUT_SHORT; in IsInstructionIGetOrIPut() 116 return Instruction::SGET <= code && code <= Instruction::SPUT_SHORT; in IsInstructionSGetOrSPut() [all …]
|
H A D | dex_instruction-inl.h | 59 inline bool Instruction::HasVRegA() const { in HasVRegA() 91 inline int32_t Instruction::VRegA() const { in VRegA() 155 inline int16_t Instruction::VRegA_20t() const { in VRegA_20t() 210 inline int32_t Instruction::VRegA_30t() const { in VRegA_30t() 263 inline bool Instruction::HasVRegB() const { in HasVRegB() 294 inline int32_t Instruction::VRegB() const { in VRegB() 441 inline bool Instruction::HasVRegC() const { in HasVRegC() 456 inline int32_t Instruction::VRegC() const { in VRegC() 526 inline bool Instruction::HasVRegH() const { in HasVRegH() 534 inline int32_t Instruction::VRegH() const { in VRegH() [all …]
|
H A D | dex_instruction_test.cc | 24 Instruction::Code nop = Instruction::NOP; in TEST() 25 EXPECT_STREQ("nop", Instruction::Name(nop)); in TEST() 26 EXPECT_EQ(Instruction::k10x, Instruction::FormatOf(nop)); in TEST() 27 EXPECT_EQ(Instruction::kIndexNone, Instruction::IndexTypeOf(nop)); in TEST() 28 EXPECT_EQ(Instruction::kContinue, Instruction::FlagsOf(nop)); in TEST() 29 EXPECT_EQ(Instruction::kVerifyNothing, Instruction::VerifyFlagsOf(nop)); in TEST() 72 TEST(Instruction, PropertiesOf45cc) { in TEST() argument 102 uint32_t arg_regs[Instruction::kMaxVarArgRegs]; in TEST() 110 TEST(Instruction, PropertiesOf4rcc) { in TEST() argument 142 Instruction::Code code, in Build35c() [all …]
|
/aosp12/art/compiler/optimizing/ |
H A D | ssa_test.cc | 124 Instruction::IF_EQ, 3, in TEST_F() 155 Instruction::IF_EQ, 3, in TEST_F() 186 Instruction::IF_EQ, 4, in TEST_F() 219 Instruction::IF_EQ, 4, in TEST_F() 250 Instruction::IF_EQ, 4, in TEST_F() 281 Instruction::IF_EQ, 4, in TEST_F() 316 Instruction::IF_EQ, 5, in TEST_F() 356 Instruction::IF_EQ, 4, in TEST_F() 360 Instruction::IF_EQ, 3, in TEST_F() 395 Instruction::IF_EQ, 8, in TEST_F() [all …]
|
H A D | liveness_test.cc | 111 Instruction::RETURN); in TEST_F() 140 Instruction::RETURN); in TEST_F() 184 Instruction::IF_EQ, 4, in TEST_F() 231 Instruction::IF_EQ, 3, in TEST_F() 276 Instruction::IF_EQ, 4, in TEST_F() 321 Instruction::IF_EQ, 4, in TEST_F() 374 Instruction::IF_EQ, 5, in TEST_F() 428 Instruction::IF_EQ, 4, in TEST_F() 432 Instruction::IF_EQ, 3, in TEST_F() 478 Instruction::IF_EQ, 8, in TEST_F() [all …]
|
H A D | linearize_test.cc | 72 Instruction::IF_EQ, 5, in TEST_F() 73 Instruction::IF_EQ, 0xFFFE, in TEST_F() 75 Instruction::RETURN_VOID); in TEST_F() 97 Instruction::IF_EQ, 3, in TEST_F() 98 Instruction::RETURN_VOID, in TEST_F() 123 Instruction::IF_EQ, 4, in TEST_F() 124 Instruction::RETURN_VOID, in TEST_F() 153 Instruction::IF_EQ, 7, in TEST_F() 183 Instruction::IF_EQ, 3, in TEST_F() 184 Instruction::RETURN_VOID, in TEST_F() [all …]
|
H A D | find_loops_test.cc | 36 Instruction::RETURN_VOID); in TEST_F() 47 Instruction::RETURN); in TEST_F() 61 Instruction::RETURN); in TEST_F() 72 Instruction::IF_EQ, 4, in TEST_F() 87 Instruction::IF_EQ, 3, in TEST_F() 131 Instruction::IF_EQ, 3, in TEST_F() 156 Instruction::IF_EQ, 4, in TEST_F() 178 Instruction::IF_EQ, 3, in TEST_F() 180 Instruction::IF_EQ, 3, in TEST_F() 202 Instruction::IF_EQ, 6, in TEST_F() [all …]
|
H A D | dominator_test.cc | 115 Instruction::GOTO_16, 3, in TEST_F() 116 Instruction::RETURN_VOID, in TEST_F() 122 Instruction::GOTO_32, 4, 0, in TEST_F() 123 Instruction::RETURN_VOID, in TEST_F() 131 Instruction::NOP, in TEST_F() 132 Instruction::GOTO | 0xFF00); in TEST_F() 144 Instruction::GOTO_32, 0, 0); in TEST_F() 168 Instruction::CONST_4 | 0 | 0, in TEST_F() 169 Instruction::IF_EQ, 3, in TEST_F() 170 Instruction::GOTO | 0x100, in TEST_F() [all …]
|
H A D | pretty_printer_test.cc | 93 Instruction::GOTO | 0x100, in TEST_F() 94 Instruction::GOTO | 0x100, in TEST_F() 95 Instruction::RETURN_VOID); in TEST_F() 116 Instruction::RETURN_VOID, in TEST_F() 122 Instruction::GOTO_16, 3, in TEST_F() 123 Instruction::RETURN_VOID, in TEST_F() 130 Instruction::RETURN_VOID, in TEST_F() 148 Instruction::NOP, in TEST_F() 170 Instruction::RETURN_VOID, in TEST_F() 197 Instruction::IF_EQ, 3, in TEST_F() [all …]
|
H A D | codegen_test.cc | 160 Instruction::IF_EQ, 3, in TEST_F() 205 Instruction::IF_EQ, 3, in TEST_F() 322 Instruction::RETURN); in TEST_F() 332 Instruction::RETURN); in TEST_F() 341 Instruction::RETURN); in TEST_F() 350 Instruction::RETURN); in TEST_F() 360 Instruction::RETURN); in TEST_F() 370 Instruction::RETURN); in TEST_F() 399 Instruction::RETURN); in TEST_F() 408 Instruction::RETURN); in TEST_F() [all …]
|
H A D | instruction_builder.cc | 1438 case Instruction::NOP: in HasTrivialClinit() 2608 case Instruction::CONST: { in ProcessDexInstruction() 2660 case Instruction::MOVE: in ProcessDexInstruction() 2715 case Instruction::GOTO: in ProcessDexInstruction() 3395 case Instruction::NOP: in ProcessDexInstruction() 3398 case Instruction::IGET: in ProcessDexInstruction() 3411 case Instruction::IPUT: in ProcessDexInstruction() 3424 case Instruction::SGET: in ProcessDexInstruction() 3435 case Instruction::SPUT: in ProcessDexInstruction() 3561 case Instruction::UNUSED_3E ... Instruction::UNUSED_43: in ProcessDexInstruction() [all …]
|
H A D | dead_code_elimination_test.cc | 72 Instruction::CONST_4 | 1 << 8 | 1 << 12, in TEST_F() 73 Instruction::CONST_4 | 0 << 8 | 0 << 12, in TEST_F() 74 Instruction::IF_GEZ | 1 << 8, 3, in TEST_F() 75 Instruction::MOVE | 0 << 8 | 1 << 12, in TEST_F() 76 Instruction::ADD_INT | 2 << 8, 0 | 1 << 8, in TEST_F() 77 Instruction::RETURN_VOID); in TEST_F() 134 Instruction::CONST_4 | 0 << 8 | 0 << 12, in TEST_F() 135 Instruction::CONST_4 | 1 << 8 | 1 << 12, in TEST_F() 137 Instruction::GOTO | 4 << 8, in TEST_F() 139 Instruction::GOTO | 4 << 8, in TEST_F() [all …]
|
H A D | constant_folding_test.cc | 101 Instruction::RETURN | 1 << 8); in TEST_F() 162 Instruction::RETURN_WIDE | 2 << 8); in TEST_F() 221 Instruction::RETURN | 2 << 8); in TEST_F() 290 Instruction::RETURN | 2 << 8); in TEST_F() 371 Instruction::RETURN | 2 << 8); in TEST_F() 434 Instruction::RETURN_WIDE | 4 << 8); in TEST_F() 571 Instruction::GOTO | 4 << 8, in TEST_F() 573 Instruction::GOTO | 4 << 8, in TEST_F() 577 Instruction::RETURN | 2 << 8); in TEST_F() 673 Instruction::IF_GEZ | 1 << 8, 3, in TEST_F() [all …]
|
H A D | suspend_check_test.cc | 47 Instruction::NOP, in TEST_F() 48 Instruction::GOTO | 0xFF00); in TEST_F() 55 Instruction::GOTO_32, 0, 0); in TEST_F() 63 Instruction::IF_EQ, 0xFFFF, in TEST_F() 64 Instruction::RETURN_VOID); in TEST_F() 72 Instruction::IF_NE, 0xFFFF, in TEST_F() 73 Instruction::RETURN_VOID); in TEST_F() 81 Instruction::IF_EQZ, 0xFFFF, in TEST_F() 82 Instruction::RETURN_VOID); in TEST_F() 90 Instruction::IF_NEZ, 0xFFFF, in TEST_F() [all …]
|
H A D | live_ranges_test.cc | 62 Instruction::CONST_4 | 0 | 0, in TEST_F() 63 Instruction::RETURN); in TEST_F() 106 Instruction::IF_EQ, 3, in TEST_F() 107 Instruction::GOTO | 0x100, in TEST_F() 153 Instruction::IF_EQ, 3, in TEST_F() 225 Instruction::IF_EQ, 4, in TEST_F() 227 Instruction::GOTO | 0xFD00, in TEST_F() 302 Instruction::IF_EQ, 6, in TEST_F() 375 Instruction::IF_EQ, 5, in TEST_F() 377 Instruction::GOTO | 0x300, in TEST_F() [all …]
|
/aosp12/packages/modules/NetworkStack/src/android/net/apf/ |
H A D | ApfGenerator.java | 426 Instruction instruction = new Instruction(Opcodes.JMP); in addJump() 505 Instruction instruction = new Instruction(Opcodes.ADD); in addAdd() 515 Instruction instruction = new Instruction(Opcodes.MUL); in addMul() 525 Instruction instruction = new Instruction(Opcodes.DIV); in addDiv() 535 Instruction instruction = new Instruction(Opcodes.AND); in addAnd() 545 Instruction instruction = new Instruction(Opcodes.OR); in addOr() 555 Instruction instruction = new Instruction(Opcodes.SH); in addLeftShift() 566 Instruction instruction = new Instruction(Opcodes.SH); in addRightShift() 644 Instruction instruction = new Instruction(Opcodes.JEQ); in addJumpIfR0Equals() 656 Instruction instruction = new Instruction(Opcodes.JNE); in addJumpIfR0NotEquals() [all …]
|
/aosp12/art/compiler/dex/ |
H A D | inline_method_analyser.cc | 111 template <Instruction::Code opcode> 462 case Instruction::RETURN: in AnalyseMethodCode() 466 case Instruction::CONST: in AnalyseMethodCode() 467 case Instruction::CONST_4: in AnalyseMethodCode() 468 case Instruction::CONST_16: in AnalyseMethodCode() 484 case Instruction::IGET: in AnalyseMethodCode() 487 case Instruction::IGET_BYTE: in AnalyseMethodCode() 496 case Instruction::IPUT: in AnalyseMethodCode() 586 if (!(return_opcode == Instruction::RETURN_WIDE && opcode == Instruction::IGET_WIDE) && in AnalyseIGetMethod() 587 !(return_opcode == Instruction::RETURN_OBJECT && opcode == Instruction::IGET_OBJECT) && in AnalyseIGetMethod() [all …]
|
/aosp12/art/runtime/ |
H A D | common_throws.cc | 492 case Instruction::IGET: in IsValidImplicitCheck() 493 case Instruction::IGET_WIDE: in IsValidImplicitCheck() 495 case Instruction::IGET_BYTE: in IsValidImplicitCheck() 496 case Instruction::IGET_CHAR: in IsValidImplicitCheck() 498 case Instruction::IPUT: in IsValidImplicitCheck() 516 case Instruction::AGET: in IsValidImplicitCheck() 522 case Instruction::APUT: in IsValidImplicitCheck() 593 case Instruction::IGET: in ThrowNullPointerExceptionFromDexPC() 606 case Instruction::IPUT: in ThrowNullPointerExceptionFromDexPC() 619 case Instruction::AGET: in ThrowNullPointerExceptionFromDexPC() [all …]
|
/aosp12/frameworks/base/startop/view_compiler/ |
H A D | dex_testcase_generator.cc | 101 Instruction::OpWithArgs(Instruction::Op::kReturn, /*dest=*/{}, resultIfZero)); in GenerateSimpleTestCases() 104 Instruction::OpWithArgs(Instruction::Op::kBindLabel, /*dest=*/{}, else_target)); in GenerateSimpleTestCases() 107 Instruction::OpWithArgs(Instruction::Op::kReturn, /*dest=*/{}, resultIfZero)); in GenerateSimpleTestCases() 122 Instruction::OpWithArgs(Instruction::Op::kReturn, /*dest=*/{}, resultIfNotZero)); in GenerateSimpleTestCases() 125 Instruction::OpWithArgs(Instruction::Op::kBindLabel, /*dest=*/{}, else_target)); in GenerateSimpleTestCases() 128 Instruction::OpWithArgs(Instruction::Op::kReturn, /*dest=*/{}, resultIfNotZero)); in GenerateSimpleTestCases() 158 Instruction::OpWithArgs(Instruction::Op::kBranchEqz, /*dest=*/{}, zero, labelB)); in GenerateSimpleTestCases() 161 Instruction::OpWithArgs(Instruction::Op::kBindLabel, /*dest=*/{}, labelA)); in GenerateSimpleTestCases() 165 Instruction::OpWithArgs(Instruction::Op::kBindLabel, /*dest=*/{}, labelB)); in GenerateSimpleTestCases() 168 Instruction::OpWithArgs(Instruction::Op::kBranchEqz, /*dest=*/{}, zero, labelA)); in GenerateSimpleTestCases() [all …]
|
H A D | dex_builder.cc | 29 using Op = Instruction::Op; 71 case Instruction::Op::kReturn: in operator <<() 77 case Instruction::Op::kMove: in operator <<() 95 case Instruction::Op::kBindLabel: in operator <<() 98 case Instruction::Op::kBranchEqz: in operator <<() 104 case Instruction::Op::kNew: in operator <<() 107 case Instruction::Op::kCheckCast: in operator <<() 385 case Instruction::Op::kReturn: in EncodeInstruction() 389 case Instruction::Op::kMove: in EncodeInstruction() 406 case Instruction::Op::kNew: in EncodeInstruction() [all …]
|
/aosp12/art/runtime/verifier/ |
H A D | method_verifier.cc | 1457 case Instruction::GOTO: in GetBranchOffset() 2048 const Instruction* inst = Instruction::At(insns); in CodeFlowVerifyInstruction() 2084 case Instruction::NOP: in CodeFlowVerifyInstruction() 2095 case Instruction::MOVE: in CodeFlowVerifyInstruction() 2582 case Instruction::GOTO: in CodeFlowVerifyInstruction() 2799 case Instruction::AGET: in CodeFlowVerifyInstruction() 2821 case Instruction::APUT: in CodeFlowVerifyInstruction() 2843 case Instruction::IGET: in CodeFlowVerifyInstruction() 3406 case Instruction::UNUSED_3E ... Instruction::UNUSED_43: in CodeFlowVerifyInstruction() 3407 case Instruction::UNUSED_E3 ... Instruction::UNUSED_F9: in CodeFlowVerifyInstruction() [all …]
|
/aosp12/art/tools/dexanalyze/ |
H A D | dexanalyze_bytecode.cc | 192 os << Instruction::Name(static_cast<Instruction::Code>(idx)); in Dump() 208 << Instruction::Name(static_cast<Instruction::Code>(pairs[i].second[0])) in Dump() 241 case Instruction::IGET: in ProcessCodeItem() 250 case Instruction::IPUT: in ProcessCodeItem() 260 new_opcode = is_iget ? Instruction::IGET : Instruction::IPUT; in ProcessCodeItem() 310 case Instruction::SGET: in ProcessCodeItem() 317 case Instruction::SPUT: in ProcessCodeItem() 426 case Instruction::IF_EQZ: in ProcessCodeItem() 498 case Instruction::RETURN: in ProcessCodeItem() 525 void NewRegisterInstructions::Add(Instruction::Code opcode, const Instruction& inst) { in Add() [all …]
|
H A D | dexanalyze_experiments.cc | 37 bool IsRange(Instruction::Code code) { in IsRange() 329 case Instruction::IGET: in ProcessDexFile() 330 case Instruction::IGET_WIDE: in ProcessDexFile() 333 case Instruction::IGET_BYTE: in ProcessDexFile() 334 case Instruction::IGET_CHAR: in ProcessDexFile() 340 case Instruction::IPUT: in ProcessDexFile() 341 case Instruction::IPUT_WIDE: in ProcessDexFile() 344 case Instruction::IPUT_BYTE: in ProcessDexFile() 345 case Instruction::IPUT_CHAR: in ProcessDexFile() 351 case Instruction::SGET: in ProcessDexFile() [all …]
|