Home
last modified time | relevance | path

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

/tools/dexter/slicer/
Dbytecode_encoder.cc26 static dex::u2 Pack_Z_8(dex::u4 a) { in Pack_Z_8()
27 dex::u2 fa = (a & 0xff); in Pack_Z_8()
33 static dex::u2 Pack_8_8(dex::u4 a, dex::u4 b) { in Pack_8_8()
34 dex::u2 fa = (a & 0xff); in Pack_8_8()
36 dex::u2 fb = (b & 0xff); in Pack_8_8()
42 static dex::u2 Pack_4_4_8(dex::u4 a, dex::u4 b, dex::u4 c) { in Pack_4_4_8()
43 dex::u2 fa = (a & 0xf); in Pack_4_4_8()
45 dex::u2 fb = (b & 0xf); in Pack_4_4_8()
47 dex::u2 fc = (c & 0xff); in Pack_4_4_8()
53 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 …]
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()
862 SLICER_CHECK(dex::u2(new_index) == new_index); in WriteInstructions()
863 *idx = dex::u2(new_index); in WriteInstructions()
871 SLICER_CHECK(dex::u2(new_index) == new_index); in WriteInstructions()
[all …]
Ddex_bytecode.cc25 Opcode OpcodeFromBytecode(u2 bytecode) { in OpcodeFromBytecode()
104 size_t GetWidthFromBytecode(const u2* bytecode) { in GetWidthFromBytecode()
111 u2 elemWidth = bytecode[1]; in GetWidthFromBytecode()
134 static u4 InstA(u2 inst) { return (inst >> 8) & 0x0f; } in InstA()
135 static u4 InstB(u2 inst) { return inst >> 12; } in InstB()
136 static u4 InstAA(u2 inst) { return inst >> 8; } in InstAA()
139 static u4 FetchU4(const u2* ptr) { return ptr[0] | (u4(ptr[1]) << 16); } in FetchU4()
142 static u8 FetchU8(const u2* ptr) { in FetchU8()
147 Instruction DecodeInstruction(const u2* bytecode) { in DecodeInstruction()
148 u2 inst = bytecode[0]; in DecodeInstruction()
[all …]
Dcode_ir.cc240 const dex::u2* begin = ir_code->instructions.begin(); in DissasembleBytecode()
241 const dex::u2* end = ir_code->instructions.end(); in DissasembleBytecode()
242 const dex::u2* ptr = begin; in DissasembleBytecode()
277 const dex::u2* begin = ir_method->code->instructions.begin(); in FixupSwitches()
358 PackedSwitchPayload* CodeIr::DecodePackedSwitch(const dex::u2* /*ptr*/, in DecodePackedSwitch() argument
371 const dex::u2* ptr) { in FixupPackedSwitch()
378 for (dex::u2 i = 0; i < dex_packed_switch->size; ++i) { in FixupPackedSwitch()
384 SparseSwitchPayload* CodeIr::DecodeSparseSwitch(const dex::u2* /*ptr*/, in DecodeSparseSwitch() argument
397 const dex::u2* ptr) { in FixupSparseSwitch()
406 for (dex::u2 i = 0; i < size; ++i) { in FixupSparseSwitch()
[all …]
Dreader.cc717 slicer::ArrayView<const dex::u2>(dex_code->insns, dex_code->insns_size); in ExtractCode()
878 void Reader::ParseInstructions(slicer::ArrayView<const dex::u2> code) { in ParseInstructions()
879 const dex::u2* ptr = code.begin(); in ParseInstructions()
Dinstrumentation.cc222 dex::u2 regs_count = 2 + needsBoxingReg; in InjectArrayParamsHook()
320 for (dex::u2 i = 0; i < regs_count; ++i) { in InjectArrayParamsHook()
Ddex_utf8.cc30 static u2 GetUtf16FromUtf8(const char** pUtf8Ptr) { in GetUtf16FromUtf8()
/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.h34 constexpr u2 kPackedSwitchSignature = 0x0100;
35 constexpr u2 kSparseSwitchSignature = 0x0200;
36 constexpr u2 kArrayDataSignature = 0x0300;
158 u2 ident;
159 u2 size;
166 u2 ident;
167 u2 size;
173 u2 ident;
174 u2 element_width;
188 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_;
228 void WriteInstructions(slicer::ArrayView<const dex::u2> instructions);
Dcode_ir.h435 void FixupPackedSwitch(PackedSwitchPayload* instr, dex::u4 base_offset, const dex::u2* ptr);
436 void FixupSparseSwitch(SparseSwitchPayload* instr, dex::u4 base_offset, const dex::u2* ptr);
438 SparseSwitchPayload* DecodeSparseSwitch(const dex::u2* /*ptr*/, dex::u4 offset);
439 PackedSwitchPayload* DecodePackedSwitch(const dex::u2* /*ptr*/, dex::u4 offset);
440 ArrayData* DecodeArrayData(const dex::u2* ptr, dex::u4 offset);
441 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: