Home
last modified time | relevance | path

Searched refs:u4 (Results 1 – 24 of 24) sorted by relevance

/tools/dexter/slicer/export/slicer/
Ddex_format.h32 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 …]
Dwriter.h41 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 …]
Dreader.h49 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 …]
Dbytecode_encoder.h54 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_;
Ddex_leb128.h28 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()
Dindex_map.h29 dex::u4 AllocateIndex() { in AllocateIndex()
38 void MarkUsedIndex(dex::u4 index) { in MarkUsedIndex()
48 dex::u4 alloc_pos_ = 0;
Ddebuginfo_encoder.h46 dex::u4 line_start_ = 0;
47 dex::u4 last_line_ = 0;
48 dex::u4 last_address_ = 0;
Ddex_ir.h121 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 …]
Ddex_bytecode.h333 using OpcodeFlags = u4;
364 u4 vA; // the A field of the instruction
365 u4 vB; // the B field of the instruction
367 u4 vC; // the C field of the instruction
368 u4 arg[5]; // vC/D/E/F/G in invoke or filled-new-array
391 u4 size;
Dinstrumentation.h108 const std::set<dex::u4>& ScratchRegs() const { in ScratchRegs()
116 void Allocate(lir::CodeIr* code_ir, dex::u4 first_reg, int count);
122 std::set<dex::u4> scratch_regs_;
Dbuffer.h130 size_t PushULeb128(dex::u4 value) { in PushULeb128()
/tools/dexter/slicer/
Dbytecode_encoder.cc26 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 …]
Dwriter.cc36 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()
250 dex::u4 offset = 0; in CreateImage()
[all …]
Dreader.cc73 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 …]
Ddex_utf8.cc31 u4 one = *(*pUtf8Ptr)++; in GetUtf16FromUtf8()
34 u4 two = *(*pUtf8Ptr)++; in GetUtf16FromUtf8()
37 u4 three = *(*pUtf8Ptr)++; in GetUtf16FromUtf8()
Dcode_ir.cc79 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 …]
Ddex_format.cc26 u4 ComputeChecksum(const Header* header) { in ComputeChecksum()
32 return static_cast<u4>( in ComputeChecksum()
Dtryblocks_encoder.cc26 const dex::u4 begin_offset = try_end->try_begin->offset; in Visit()
27 const dex::u4 end_offset = try_end->offset; in Visit()
Dinstrumentation.cc105 dex::u4 reg = 0; in Apply()
317 const dex::u4 shift = left_to_allocate_; in ShiftParams()
322 const dex::u4 regs = ir_method->code->registers; in ShiftParams()
323 const dex::u4 ins_count = ir_method->code->ins_count; in ShiftParams()
328 dex::u4 reg = regs - ins_count; in ShiftParams()
358 void AllocateScratchRegs::Allocate(lir::CodeIr* code_ir, dex::u4 first_reg, int count) { in Allocate()
Ddex_ir.cc129 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()
Ddex_bytecode.cc155 u4 len = bytecode[2] | (((u4)bytecode[3]) << 16); in GetWidthFromBytecode()
736 static u4 InstA(u2 inst) { return (inst >> 8) & 0x0f; } in InstA()
737 static u4 InstB(u2 inst) { return inst >> 12; } in InstB()
738 static u4 InstAA(u2 inst) { return inst >> 8; } in InstAA()
741 static u4 FetchU4(const u2* ptr) { in FetchU4()
742 return ptr[0] | (u4(ptr[1]) << 16); in FetchU4()
Ddex_ir_builder.cc68 dex::u4 len = strlen(cstr); in GetAsciiString()
/tools/dexter/dexter/
Ddexter.cc131 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()
Dexperimental.cc234 dex::u4 reg = 0; in StressExitHook()
374 dex::u4 scratch_reg = *alloc_regs.ScratchRegs().begin(); in CodeCoverage()
391 static_cast<dex::u4>(basic_block_id), in CodeCoverage()