Home
last modified time | relevance | path

Searched refs:insns (Results 1 – 24 of 24) sorted by relevance

/art/libdexfile/dex/
Ddex_instruction.h491 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetOpcode() local
492 insns[0] = (insns[0] & 0xff00) | static_cast<uint16_t>(opcode); in SetOpcode()
497 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetVRegA_10x() local
498 insns[0] = (val << 8) | (insns[0] & 0x00ff); in SetVRegA_10x()
503 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetVRegB_3rc() local
504 insns[1] = val; in SetVRegB_3rc()
509 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetVRegB_35c() local
510 insns[1] = val; in SetVRegB_35c()
515 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetVRegC_22c() local
516 insns[1] = val; in SetVRegC_22c()
[all …]
Ddex_instruction.cc92 const uint16_t* insns = reinterpret_cast<const uint16_t*>(this); in CanFlowThrough() local
93 uint16_t insn = *insns; in CanFlowThrough()
99 const uint16_t* insns = reinterpret_cast<const uint16_t*>(this); in SizeInCodeUnitsComplexOpcode() local
101 switch (*insns) { in SizeInCodeUnitsComplexOpcode()
103 return (4 + insns[1] * 2); in SizeInCodeUnitsComplexOpcode()
105 return (2 + insns[1] * 4); in SizeInCodeUnitsComplexOpcode()
107 uint16_t element_size = insns[1]; in SizeInCodeUnitsComplexOpcode()
108 uint32_t length = insns[2] | (((uint32_t)insns[3]) << 16); in SizeInCodeUnitsComplexOpcode()
113 if ((*insns & 0xFF) == 0) { in SizeInCodeUnitsComplexOpcode()
123 const uint16_t* insns = reinterpret_cast<const uint16_t*>(this); in CodeUnitsRequiredForSizeOfComplexOpcode() local
[all …]
Dcode_item_accessors_test.cc75 const uint16_t* insns) { in TEST() argument
79 EXPECT_EQ(insns_accessor.Insns(), insns); in TEST()
84 EXPECT_EQ(data_accessor.Insns(), insns); in TEST()
Dcode_item_accessors-inl.h32 const uint16_t* insns) { in Init() argument
34 insns_ = insns; in Init()
Dcode_item_accessors.h81 ALWAYS_INLINE void Init(uint32_t insns_size_in_code_units, const uint16_t* insns);
Ddex_file_verifier.cc1558 const uint16_t* insns = accessor.Insns(); in CheckIntraCodeItem() local
1560 if (!CheckListSize(insns, insns_size, sizeof(uint16_t), "insns size")) { in CheckIntraCodeItem()
1567 ptr_ = reinterpret_cast<const uint8_t*>(&insns[insns_size]); in CheckIntraCodeItem()
1572 if (((reinterpret_cast<uintptr_t>(&insns[insns_size]) & 3) != 0) && (insns[insns_size] != 0)) { in CheckIntraCodeItem()
1573 ErrorStringPrintf("Non-zero padding: %x", insns[insns_size]); in CheckIntraCodeItem()
/art/dexdump/
Ddexdump_cfg.cc50 const uint16_t* insns = reinterpret_cast<const uint16_t*>(inst); in DumpMethodCFG() local
51 int32_t switch_offset = insns[1] | (static_cast<int32_t>(insns[2]) << 16); in DumpMethodCFG()
52 const uint16_t* switch_insns = insns + switch_offset; in DumpMethodCFG()
55 if ((*insns & 0xff) == Instruction::PACKED_SWITCH) { in DumpMethodCFG()
222 const uint16_t* insns = reinterpret_cast<const uint16_t*>(inst); in DumpMethodCFG() local
224 int32_t switch_offset = insns[1] | (static_cast<int32_t>(insns[2]) << 16); in DumpMethodCFG()
226 const uint16_t* switch_insns = insns + switch_offset; in DumpMethodCFG()
229 if ((*insns & 0xff) == Instruction::PACKED_SWITCH) { in DumpMethodCFG()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DCodeItem.java33 public List<Instruction> insns; field in CodeItem
72 insns = new LinkedList<Instruction>(); in populateInstructionList()
82 insns.add(newInsn); in populateInstructionList()
101 for (Instruction insn : insns) { in write()
138 List<Instruction> insnsToIncrement = insns; in incrementIndex()
/art/test/dexdump/
Dall.txt111 insns size : 4 16-bit code units
127 insns size : 29 16-bit code units
156 insns size : 65 16-bit code units
203 insns size : 33 16-bit code units
250 insns size : 17 16-bit code units
273 insns size : 23 16-bit code units
299 insns size : 11 16-bit code units
319 insns size : 25 16-bit code units
346 insns size : 28 16-bit code units
372 insns size : 54 16-bit code units
[all …]
Dconst-method-handle.txt59 insns size : 4 16-bit code units
77 insns size : 25 16-bit code units
136 insns size : 4 16-bit code units
154 insns size : 47 16-bit code units
195 insns size : 25 16-bit code units
224 insns size : 15 16-bit code units
245 insns size : 3 16-bit code units
261 insns size : 3 16-bit code units
Dinvoke-custom.txt60 insns size : 4 16-bit code units
104 insns size : 4 16-bit code units
122 insns size : 34 16-bit code units
156 insns size : 34 16-bit code units
190 insns size : 36 16-bit code units
225 insns size : 36 16-bit code units
260 insns size : 34 16-bit code units
294 insns size : 36 16-bit code units
329 insns size : 38 16-bit code units
365 insns size : 34 16-bit code units
[all …]
Dinvoke-polymorphic.txt59 insns size : 4 16-bit code units
77 insns size : 30 16-bit code units
Dstaticfields.txt114 insns size : 4 16-bit code units
Dvalues.txt325 insns size : 4 16-bit code units
343 insns size : 4 16-bit code units
Dbytecodes.txt131 insns size : 4 16-bit code units
178 insns size : 4 16-bit code units
230 insns size : 4 16-bit code units
276 insns size : 4 16-bit code units
443 insns size : 74 16-bit code units
492 insns size : 234 16-bit code units
643 insns size : 239 16-bit code units
810 insns size : 118 16-bit code units
903 insns size : 171 16-bit code units
1027 insns size : 78 16-bit code units
[all …]
Dcheckers.txt59 insns size : 4 16-bit code units
75 insns size : 33 16-bit code units
105 insns size : 4 16-bit code units
121 insns size : 59 16-bit code units
165 insns size : 216 16-bit code units
284 insns size : 58 16-bit code units
322 insns size : 158 16-bit code units
414 insns size : 21 16-bit code units
438 insns size : 8 16-bit code units
456 insns size : 44 16-bit code units
[all …]
/art/tools/dexfuzz/src/dexfuzz/program/
DCodeTranslator.java75 List<Instruction> inputInsns = codeItem.insns; in codeItemToMutatableCode()
201 codeItem.insns = outputInsns; in mutatableCodeToCodeItem()
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2_test.cc110 std::vector<uint8_t> RawCode(std::initializer_list<uint32_t> insns) { in RawCode() argument
113 std::count_if(insns.begin(), insns.end(), [](uint32_t x) { return IsUint<16>(x); }); in RawCode()
114 raw_code.reserve(insns.size() * 4u - number_of_16_bit_insns * 2u); in RawCode()
115 for (uint32_t insn : insns) { in RawCode()
/art/tools/veridex/
Dflow_analysis.cc203 const uint16_t* insns = code_item_accessor_.Insns() + dex_pc; in AnalyzeCode() local
204 const Instruction& inst = *Instruction::At(insns); in AnalyzeCode()
/art/runtime/interpreter/
Dinterpreter_switch_impl-inl.h1946 const uint16_t* const insns = accessor.Insns(); in DEX_INSTRUCTION_LIST() local
1947 const Instruction* next = Instruction::At(insns + dex_pc); in DEX_INSTRUCTION_LIST()
1955 dex_pc = inst->GetDexPc(insns); in DEX_INSTRUCTION_LIST()
2000 shadow_frame.SetDexPC(next->GetDexPc(insns)); // Record where we stopped. in DEX_INSTRUCTION_LIST()
/art/dexlayout/
Ddex_ir_builder.cc823 uint16_t* insns = new uint16_t[insns_size]; in DedupeOrCreateCodeItem() local
824 memcpy(insns, accessor.Insns(), insns_size * sizeof(uint16_t)); in DedupeOrCreateCodeItem()
910 insns, in DedupeOrCreateCodeItem()
Ddexlayout.cc821 const uint16_t* insns = code->Insns(); in DumpInstruction() local
828 const uint8_t* bytePtr = (const uint8_t*) &insns[insn_idx + i]; in DumpInstruction()
838 const uint16_t instr = Get2LE((const uint8_t*) &insns[insn_idx]); in DumpInstruction()
Ddex_ir.h1043 uint16_t* insns, in CodeItem() argument
1051 insns_(insns), in CodeItem()
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64_test.cc101 std::vector<uint8_t> RawCode(std::initializer_list<uint32_t> insns) { in RawCode() argument
103 raw_code.reserve(insns.size() * 4u); in RawCode()
104 for (uint32_t insn : insns) { in RawCode()