Home
last modified time | relevance | path

Searched refs:u2 (Results 1 – 14 of 14) sorted by relevance

/tools/dexter/slicer/
Dbytecode_encoder.cc29 static dex::u2 Pack_Z_8(dex::u4 a) { in Pack_Z_8()
30 dex::u2 fa = (a & 0xff); in Pack_Z_8()
36 static dex::u2 Pack_8_8(dex::u4 a, dex::u4 b) { in Pack_8_8()
37 dex::u2 fa = (a & 0xff); in Pack_8_8()
39 dex::u2 fb = (b & 0xff); in Pack_8_8()
45 static dex::u2 Pack_4_4_8(dex::u4 a, dex::u4 b, dex::u4 c) { in Pack_4_4_8()
46 dex::u2 fa = (a & 0xf); in Pack_4_4_8()
48 dex::u2 fb = (b & 0xf); in Pack_4_4_8()
50 dex::u2 fc = (c & 0xff); in Pack_4_4_8()
56 static dex::u2 Pack_4_4_4_4(dex::u4 a, dex::u4 b, dex::u4 c, dex::u4 d) { in Pack_4_4_4_4()
[all …]
Ddex_bytecode.cc27 Opcode OpcodeFromBytecode(u2 bytecode) { in OpcodeFromBytecode()
106 size_t GetWidthFromBytecode(const u2* bytecode) { in GetWidthFromBytecode()
113 u2 elemWidth = bytecode[1]; in GetWidthFromBytecode()
136 static u4 InstA(u2 inst) { return (inst >> 8) & 0x0f; } in InstA()
137 static u4 InstB(u2 inst) { return inst >> 12; } in InstB()
138 static u4 InstAA(u2 inst) { return inst >> 8; } in InstAA()
141 static u4 FetchU4(const u2* ptr) { return ptr[0] | (u4(ptr[1]) << 16); } in FetchU4()
144 static u8 FetchU8(const u2* ptr) { in FetchU8()
149 Instruction DecodeInstruction(const u2* bytecode) { in DecodeInstruction()
150 u2 inst = bytecode[0]; in DecodeInstruction()
[all …]
Dwriter.cc235 static u4 ReadU4(const u2* ptr) { return ptr[0] | (u4(ptr[1]) << 16); } in ReadU4()
237 static void WriteU4(u2* ptr, u4 val) { in WriteU4()
640 data.Push<dex::u2>(ir_type->index); in WriteTypeList()
822 void Writer::WriteInstructions(slicer::ArrayView<const dex::u2> instructions) { in WriteInstructions()
826 dex::u2* ptr = dex_->code.ptr<dex::u2>(offset); in WriteInstructions()
827 dex::u2* const end = ptr + instructions.size(); in WriteInstructions()
832 dex::u2* idx = &ptr[1]; in WriteInstructions()
833 dex::u2* idx2 = nullptr; in WriteInstructions()
869 SLICER_CHECK_EQ(dex::u2(new_index), new_index); in WriteInstructions()
870 *idx = dex::u2(new_index); in WriteInstructions()
[all …]
Dcode_ir.cc239 const dex::u2* begin = ir_code->instructions.begin(); in DisassembleBytecode()
240 const dex::u2* end = ir_code->instructions.end(); in DisassembleBytecode()
241 const dex::u2* ptr = begin; in DisassembleBytecode()
276 const dex::u2* begin = ir_method->code->instructions.begin(); in FixupSwitches()
357 PackedSwitchPayload* CodeIr::DecodePackedSwitch(const dex::u2* /*ptr*/, in DecodePackedSwitch() argument
370 const dex::u2* ptr) { in FixupPackedSwitch()
377 for (dex::u2 i = 0; i < dex_packed_switch->size; ++i) { in FixupPackedSwitch()
383 SparseSwitchPayload* CodeIr::DecodeSparseSwitch(const dex::u2* /*ptr*/, in DecodeSparseSwitch() argument
396 const dex::u2* ptr) { in FixupSparseSwitch()
405 for (dex::u2 i = 0; i < size; ++i) { in FixupSparseSwitch()
[all …]
Ddex_utf8.cc30 static u2 GetUtf16FromUtf8(const char** pUtf8Ptr) { in GetUtf16FromUtf8()
Dreader.cc718 slicer::ArrayView<const dex::u2>(dex_code->insns, dex_code->insns_size); in ExtractCode()
879 void Reader::ParseInstructions(slicer::ArrayView<const dex::u2> code) { in ParseInstructions()
880 const dex::u2* ptr = code.begin(); in ParseInstructions()
Dinstrumentation.cc231 dex::u2 regs_count = 3; in InjectArrayParamsHook()
347 for (dex::u2 i = 0; i < regs_count; ++i) { in InjectArrayParamsHook()
/tools/dexter/slicer/export/slicer/
Ddex_format.h31 typedef uint16_t u2; typedef
97 constexpr u2 kHeaderItem = 0x0000;
98 constexpr u2 kStringIdItem = 0x0001;
99 constexpr u2 kTypeIdItem = 0x0002;
100 constexpr u2 kProtoIdItem = 0x0003;
101 constexpr u2 kFieldIdItem = 0x0004;
102 constexpr u2 kMethodIdItem = 0x0005;
103 constexpr u2 kClassDefItem = 0x0006;
104 constexpr u2 kMapList = 0x1000;
105 constexpr u2 kTypeList = 0x1001;
[all …]
Ddex_bytecode.h35 constexpr u2 kPackedSwitchSignature = 0x0100;
36 constexpr u2 kSparseSwitchSignature = 0x0200;
37 constexpr u2 kArrayDataSignature = 0x0300;
135 u2 ident;
136 u2 size;
143 u2 ident;
144 u2 size;
150 u2 ident;
151 u2 element_width;
165 Opcode OpcodeFromBytecode(u2 bytecode);
[all …]
Dwriter.h35 explicit Section(dex::u2 mapEntryType) : map_entry_type_(mapEntryType) {} in Section()
66 dex::u2 MapEntryType() const { return map_entry_type_; } in MapEntryType()
71 const dex::u2 map_entry_type_;
79 explicit Index(dex::u2 mapEntryType) : map_entry_type_(mapEntryType) {} in Index()
117 dex::u2 MapEntryType() const { return map_entry_type_; } in MapEntryType()
123 const dex::u2 map_entry_type_;
229 void WriteInstructions(slicer::ArrayView<const dex::u2> instructions);
Dcode_ir.h447 void FixupPackedSwitch(PackedSwitchPayload* instr, dex::u4 base_offset, const dex::u2* ptr);
448 void FixupSparseSwitch(SparseSwitchPayload* instr, dex::u4 base_offset, const dex::u2* ptr);
450 SparseSwitchPayload* DecodeSparseSwitch(const dex::u2* /*ptr*/, dex::u4 offset);
451 PackedSwitchPayload* DecodePackedSwitch(const dex::u2* /*ptr*/, dex::u4 offset);
452 ArrayData* DecodeArrayData(const dex::u2* ptr, dex::u4 offset);
453 Bytecode* DecodeBytecode(const dex::u2* ptr, dex::u4 offset);
Ddex_ir.h229 dex::u2 registers;
230 dex::u2 ins_count;
231 dex::u2 outs_count;
232 slicer::ArrayView<const dex::u2> instructions;
Dreader.h102 void ParseInstructions(slicer::ArrayView<const dex::u2> code);
/tools/test/connectivity/acts/framework/acts/
Dlogger.py131 for u1, u2 in zip(dt1, dt2):
132 if u1 < u2:
134 elif u1 > u2: