Home
last modified time | relevance | path

Searched refs:u4 (Results 1 – 23 of 23) 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_;
Dcode_ir.h49 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 …]
Ddex_bytecode.h95 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.
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 …]
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()
235 static u4 ReadU4(const u2* ptr) { return ptr[0] | (u4(ptr[1]) << 16); } in ReadU4()
[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_bytecode.cc112 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()
Dinstrumentation.cc35 dex::u4 src_reg, in BoxValue()
36 dex::u4 dst_reg) { in BoxValue()
179 dex::u4 array_size_reg = *(reg_iterator); in InjectArrayParamsHook()
182 dex::u4 array_reg = *(++reg_iterator); in InjectArrayParamsHook()
184 dex::u4 boxing_reg = needsBoxingReg ? *(++reg_iterator) : 0; in InjectArrayParamsHook()
222 dex::u4 current_reg = ir_method->code->registers - ir_method->code->ins_count; in InjectArrayParamsHook()
224 dex::u4 array_index_reg = array_size_reg; in InjectArrayParamsHook()
227 dex::u4 src_reg = 0; in InjectArrayParamsHook()
308 dex::u4 reg = 0; in Apply()
548 const dex::u4 shift = left_to_allocate_; in ShiftParams()
[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()
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_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()
380 dex::u4 scratch_reg = *alloc_regs.ScratchRegs().begin(); in CodeCoverage()
397 static_cast<dex::u4>(basic_block_id), in CodeCoverage()