Home
last modified time | relevance | path

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

12

/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/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/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/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/runtime/verifier/
Dmethod_verifier.cc502 bool CheckNotMoveException(const uint16_t* insns, int insn_idx) { in CheckNotMoveException() argument
503 if ((insns[insn_idx] & 0xff) == Instruction::MOVE_EXCEPTION) { in CheckNotMoveException()
516 bool CheckNotMoveResult(const uint16_t* insns, int insn_idx) { in CheckNotMoveResult() argument
517 if (((insns[insn_idx] & 0xff) >= Instruction::MOVE_RESULT) && in CheckNotMoveResult()
518 ((insns[insn_idx] & 0xff) <= Instruction::MOVE_RESULT_OBJECT)) { in CheckNotMoveResult()
530 bool CheckNotMoveExceptionOrMoveResult(const uint16_t* insns, int insn_idx) { in CheckNotMoveExceptionOrMoveResult() argument
531 return (CheckNotMoveException(insns, insn_idx) && CheckNotMoveResult(insns, insn_idx)); in CheckNotMoveExceptionOrMoveResult()
1324 const uint16_t* insns = code_item_accessor_.Insns() + cur_offset; in CheckArrayData() local
1330 array_data_offset = insns[1] | (static_cast<int32_t>(insns[2]) << 16); in CheckArrayData()
1339 array_data = insns + array_data_offset; in CheckArrayData()
[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()
Ddexlayout.cc820 const uint16_t* insns = code->Insns(); in DumpInstruction() local
827 const uint8_t* bytePtr = (const uint8_t*) &insns[insn_idx + i]; in DumpInstruction()
837 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()

12