Home
last modified time | relevance | path

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

/art/libdexfile/dex/
Ddex_instruction.h484 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetOpcode() local
485 insns[0] = (insns[0] & 0xff00) | static_cast<uint16_t>(opcode); in SetOpcode()
490 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetVRegA_10x() local
491 insns[0] = (val << 8) | (insns[0] & 0x00ff); in SetVRegA_10x()
496 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetVRegB_3rc() local
497 insns[1] = val; in SetVRegB_3rc()
502 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetVRegB_35c() local
503 insns[1] = val; in SetVRegB_35c()
508 uint16_t* insns = reinterpret_cast<uint16_t*>(this); in SetVRegC_22c() local
509 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.h31 const uint16_t* insns) { in Init() argument
33 insns_ = insns; in Init()
Dcode_item_accessors.h80 ALWAYS_INLINE void Init(uint32_t insns_size_in_code_units, const uint16_t* insns);
Ddex_file_verifier.cc1258 const uint16_t* insns = accessor.Insns(); in CheckIntraCodeItem() local
1260 if (!CheckListSize(insns, insns_size, sizeof(uint16_t), "insns size")) { in CheckIntraCodeItem()
1267 ptr_ = reinterpret_cast<const uint8_t*>(&insns[insns_size]); in CheckIntraCodeItem()
1272 if (((reinterpret_cast<uintptr_t>(&insns[insns_size]) & 3) != 0) && (insns[insns_size] != 0)) { in CheckIntraCodeItem()
1273 ErrorStringPrintf("Non-zero padding: %x", insns[insns_size]); in CheckIntraCodeItem()
/art/runtime/entrypoints/quick/
Dquick_fillarray_entrypoints.cc31 const uint16_t* const insns = method->DexInstructions().Insns(); in artHandleFillArrayDataFromCode() local
33 reinterpret_cast<const Instruction::ArrayDataPayload*>(insns + payload_offset); in artHandleFillArrayDataFromCode()
/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 …]
/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/dexlayout/
Ddex_ir_builder.cc822 uint16_t* insns = new uint16_t[insns_size]; in DedupeOrCreateCodeItem() local
823 memcpy(insns, accessor.Insns(), insns_size * sizeof(uint16_t)); in DedupeOrCreateCodeItem()
909 insns, in DedupeOrCreateCodeItem()
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()