/tools/dexter/slicer/export/slicer/ |
D | dex_format.h | 32 typedef uint32_t u4; typedef 40 constexpr u4 kEndianConstant = 0x12345678; 41 constexpr u4 kNoIndex = 0xffffffff; 42 constexpr u4 kSHA1DigestLen = 20; 75 constexpr u4 kAccPublic = 0x0001; // class, field, method, ic 76 constexpr u4 kAccPrivate = 0x0002; // field, method, ic 77 constexpr u4 kAccProtected = 0x0004; // field, method, ic 78 constexpr u4 kAccStatic = 0x0008; // field, method, ic 79 constexpr u4 kAccFinal = 0x0010; // class, field, method, ic 80 constexpr u4 kAccSynchronized = 0x0020; // method (only allowed on natives) [all …]
|
D | writer.h | 41 void SetOffset(dex::u4 offset) { in SetOffset() 46 dex::u4 SectionOffset() const { in SectionOffset() 51 dex::u4 AbsoluteOffset(dex::u4 itemOffset) const { in AbsoluteOffset() 58 dex::u4 AddItem(dex::u4 alignment = 1) { 64 dex::u4 ItemsCount() const { return count_; } in ItemsCount() 69 dex::u4 offset_ = 0; 70 dex::u4 count_ = 0; 85 dex::u4 Init(dex::u4 offset, dex::u4 count) { in Init() 98 dex::u4 SectionOffset() const { in SectionOffset() 108 dex::u4 ItemsCount() const { return count_; } in ItemsCount() [all …]
|
D | reader.h | 49 const char* GetStringMUTF8(dex::u4 index) const; 61 void CreateClassIr(dex::u4 index); 62 dex::u4 FindClassIndex(const char* class_descriptor) const; 66 ir::Class* GetClass(dex::u4 index); 67 ir::Type* GetType(dex::u4 index); 68 ir::FieldDecl* GetFieldDecl(dex::u4 index); 69 ir::MethodDecl* GetMethodDecl(dex::u4 index); 70 ir::Proto* GetProto(dex::u4 index); 71 ir::String* GetString(dex::u4 index); 74 ir::AnnotationsDirectory* ExtractAnnotations(dex::u4 offset); [all …]
|
D | code_ir.h | 49 constexpr dex::u4 kInvalidOffset = dex::u4(-1); 130 dex::u4 u4_value; 134 explicit Const32(dex::u4 value) { u.u4_value = value; } in Const32() 152 dex::u4 reg; 154 explicit VReg(dex::u4 reg) : reg(reg) {} in VReg() 160 dex::u4 base_reg; 162 explicit VRegPair(dex::u4 base_reg) : base_reg(base_reg) {} in VRegPair() 168 std::vector<dex::u4> registers; 174 dex::u4 base_reg; 177 VRegRange(dex::u4 base_reg, int count) : base_reg(base_reg), count(count) {} in VRegRange() [all …]
|
D | dex_ir.h | 121 dex::u4 index; 125 dex::u4 orig_index; 212 dex::u4 access_flags; 218 dex::u4 line_start; 251 dex::u4 access_flags; 315 dex::u4 access_flags; 391 std::map<dex::u4, Type*> types_map; 392 std::map<dex::u4, String*> strings_map; 393 std::map<dex::u4, Proto*> protos_map; 394 std::map<dex::u4, FieldDecl*> fields_map; [all …]
|
D | bytecode_encoder.h | 54 void FixupPackedSwitch(dex::u4 base_offset, dex::u4 payload_offset); 55 void FixupSparseSwitch(dex::u4 base_offset, dex::u4 payload_offset); 61 dex::u4 offset; // instruction to be fixed up 65 LabelFixup(dex::u4 offset, Label* label, bool short_fixup) : in LabelFixup() 74 dex::u4 offset_ = 0; 77 dex::u4 outs_count_ = 0; 81 std::map<dex::u4, const PackedSwitchPayload*> packed_switches_; 82 std::map<dex::u4, const SparseSwitchPayload*> sparse_switches_;
|
D | dex_bytecode.h | 95 using VerifyFlags = u4; 148 u4 vA; // the A field of the instruction 149 u4 vB; // the B field of the instruction 151 u4 vC; // the C field of the instruction 152 u4 arg[5]; // vC/D/E/F/G in invoke or filled-new-array 175 u4 size; 181 u4 verify_flags; // Set of VerifyFlag.
|
D | dex_leb128.h | 28 inline u4 ReadULeb128(const u1** pptr) { in ReadULeb128() 30 u4 result = *(ptr++); in ReadULeb128() 33 u4 cur = *(ptr++); in ReadULeb128() 96 inline u1* WriteULeb128(u1* ptr, u4 data) { in WriteULeb128() 113 u4 extra_bits = static_cast<u4>(value ^ (value >> 31)) >> 6; in WriteSLeb128()
|
D | index_map.h | 29 dex::u4 AllocateIndex() { in AllocateIndex() 38 void MarkUsedIndex(dex::u4 index) { in MarkUsedIndex() 48 dex::u4 alloc_pos_ = 0;
|
D | debuginfo_encoder.h | 46 dex::u4 line_start_ = 0; 47 dex::u4 last_line_ = 0; 48 dex::u4 last_address_ = 0;
|
D | instrumentation.h | 167 const std::set<dex::u4>& ScratchRegs() const { in ScratchRegs() 175 void Allocate(lir::CodeIr* code_ir, dex::u4 first_reg, int count); 181 std::set<dex::u4> scratch_regs_;
|
D | buffer.h | 130 size_t PushULeb128(dex::u4 value) { in PushULeb128()
|
/tools/dexter/slicer/ |
D | writer.cc | 36 static dex::u4 OptIndex(const T* ir_node) { in OptIndex() 135 WriteIntValue<dex::u4>(type, ir_value->u.string_value->index, data); in WriteEncodedValue() 139 WriteIntValue<dex::u4>(type, ir_value->u.type_value->index, data); in WriteEncodedValue() 143 WriteIntValue<dex::u4>(type, ir_value->u.field_value->index, data); in WriteEncodedValue() 147 WriteIntValue<dex::u4>(type, ir_value->u.method_value->index, data); in WriteEncodedValue() 151 WriteIntValue<dex::u4>(type, ir_value->u.enum_value->index, data); in WriteEncodedValue() 220 static void CopySection(const T& section, dex::u1* image, dex::u4 image_size) { in CopySection() 227 dex::u4 offset = section.SectionOffset(); in CopySection() 228 dex::u4 size = section.size(); in CopySection() 235 static u4 ReadU4(const u2* ptr) { return ptr[0] | (u4(ptr[1]) << 16); } in ReadU4() [all …]
|
D | bytecode_encoder.cc | 26 static dex::u2 Pack_Z_8(dex::u4 a) { in Pack_Z_8() 33 static dex::u2 Pack_8_8(dex::u4 a, dex::u4 b) { 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() 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() 66 static dex::u2 Pack_16(dex::u4 a) { in Pack_16() 73 static dex::u4 Trim_S0(dex::u4 value) { in Trim_S0() 74 dex::u4 trim = value & 0xf; in Trim_S0() 75 SLICER_CHECK(dex::u4(dex::s4(trim << 28) >> 28) == value); in Trim_S0() 80 static dex::u4 Trim_S1(dex::u4 value) { in Trim_S1() 81 dex::u4 trim = value & 0xff; in Trim_S1() [all …]
|
D | reader.cc | 73 const char* Reader::GetStringMUTF8(dex::u4 index) const { in GetStringMUTF8() 89 void Reader::CreateClassIr(dex::u4 index) { in CreateClassIr() 96 dex::u4 Reader::FindClassIndex(const char* class_descriptor) const { in FindClassIndex() 99 for (dex::u4 i = 0; i < classes.size(); ++i) { in FindClassIndex() 121 ir::Class* Reader::GetClass(dex::u4 index) { in GetClass() 138 ir::Type* Reader::GetType(dex::u4 index) { in GetType() 155 ir::FieldDecl* Reader::GetFieldDecl(dex::u4 index) { in GetFieldDecl() 172 ir::MethodDecl* Reader::GetMethodDecl(dex::u4 index) { in GetMethodDecl() 189 ir::Proto* Reader::GetProto(dex::u4 index) { in GetProto() 206 ir::String* Reader::GetString(dex::u4 index) { in GetString() [all …]
|
D | code_ir.cc | 79 dex::u4 type_index = dex::ReadULeb128(&ptr); in DissasembleTryBlocks() 84 dex::u4 address = dex::ReadULeb128(&ptr); in DissasembleTryBlocks() 96 dex::u4 address = dex::ReadULeb128(&ptr); in DissasembleTryBlocks() 115 dex::u4 address = 0; in DissasembleDebugInfo() 169 dex::u4 name_index = dex::ReadULeb128(&ptr) - 1; in DissasembleDebugInfo() 173 dex::u4 type_index = dex::ReadULeb128(&ptr) - 1; in DissasembleDebugInfo() 184 dex::u4 name_index = dex::ReadULeb128(&ptr) - 1; in DissasembleDebugInfo() 188 dex::u4 type_index = dex::ReadULeb128(&ptr) - 1; in DissasembleDebugInfo() 192 dex::u4 sig_index = dex::ReadULeb128(&ptr) - 1; in DissasembleDebugInfo() 215 dex::u4 name_index = dex::ReadULeb128(&ptr) - 1; in DissasembleDebugInfo() [all …]
|
D | instrumentation.cc | 35 dex::u4 src_reg, in BoxValue() 36 dex::u4 dst_reg) { in BoxValue() 161 void GenerateShiftParamsCode(lir::CodeIr* code_ir, lir::Instruction* position, dex::u4 shift) { in GenerateShiftParamsCode() 175 const dex::u4 regs = ir_method->code->registers; in GenerateShiftParamsCode() 176 const dex::u4 ins_count = ir_method->code->ins_count; in GenerateShiftParamsCode() 180 dex::u4 reg = regs - ins_count; in GenerateShiftParamsCode() 237 dex::u4 array_size_reg = 0; in InjectArrayParamsHook() 240 dex::u4 array_reg = 1; in InjectArrayParamsHook() 242 dex::u4 boxing_reg = needsBoxingReg ? 2 : 0; in InjectArrayParamsHook() 270 dex::u4 current_reg = ir_method->code->registers - ir_method->code->ins_count; in InjectArrayParamsHook() [all …]
|
D | dex_bytecode.cc | 112 u4 len = bytecode[2] | (((u4)bytecode[3]) << 16); 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()
|
D | dex_ir.cc | 129 void DexFile::TopSortClassIndex(Class* irClass, dex::u4* nextIndex) { in TopSortClassIndex() 130 if (irClass->index == dex::u4(-1)) { in TopSortClassIndex() 152 irClass->index = dex::u4(-1); in SortClassIndexes() 155 dex::u4 nextIndex = 0; in SortClassIndexes()
|
D | dex_utf8.cc | 31 u4 one = *(*pUtf8Ptr)++; in GetUtf16FromUtf8() 34 u4 two = *(*pUtf8Ptr)++; in GetUtf16FromUtf8() 37 u4 three = *(*pUtf8Ptr)++; in GetUtf16FromUtf8()
|
D | dex_format.cc | 26 u4 ComputeChecksum(const Header* header) { in ComputeChecksum() 32 return static_cast<u4>( in ComputeChecksum()
|
D | tryblocks_encoder.cc | 26 const dex::u4 begin_offset = try_end->try_begin->offset; in Visit() 27 const dex::u4 end_offset = try_end->offset; in Visit()
|
D | dex_ir_builder.cc | 68 dex::u4 len = strlen(cstr); in GetAsciiString()
|
/tools/dexter/dexter/ |
D | dexter.cc | 131 for (dex::u4 i = 0; i < dexMap.size; ++i) { in PrintDexMap() 191 dex::u4 sectionByteSize = (i == dexMap.size - 1) in PrintDexMap() 250 for (dex::u4 i = 0; i < classes.size(); ++i) { in ListClasses() 362 dex::u4 class_idx = reader.FindClassIndex(descriptor.c_str()); in ProcessDex()
|
D | experimental.cc | 234 dex::u4 reg = 0; in StressExitHook() 380 dex::u4 scratch_reg = *alloc_regs.ScratchRegs().begin(); in CodeCoverage() 397 static_cast<dex::u4>(basic_block_id), in CodeCoverage()
|