/art/libdexfile/dex/ |
D | modifiers.h | 26 static constexpr uint32_t kAccPublic = 0x0001; // class, field, method, ic 27 static constexpr uint32_t kAccPrivate = 0x0002; // field, method, ic 28 static constexpr uint32_t kAccProtected = 0x0004; // field, method, ic 29 static constexpr uint32_t kAccStatic = 0x0008; // field, method, ic 30 static constexpr uint32_t kAccFinal = 0x0010; // class, field, method, ic 31 static constexpr uint32_t kAccSynchronized = 0x0020; // method (only allowed on natives) 32 static constexpr uint32_t kAccSuper = 0x0020; // class (not used in dex) 33 static constexpr uint32_t kAccVolatile = 0x0040; // field 34 static constexpr uint32_t kAccBridge = 0x0040; // method (1.5) 35 static constexpr uint32_t kAccTransient = 0x0080; // field [all …]
|
D | type_lookup_table.h | 44 uint32_t num_class_defs); 66 uint32_t Size() const { in Size() 73 uint32_t Lookup(const char* str, uint32_t hash) const; 82 uint32_t RawDataLength() const { in RawDataLength() 88 static uint32_t RawDataLength(uint32_t num_class_defs); 113 Entry(uint32_t str_offset, uint32_t hash, uint32_t class_def_index, uint32_t mask_bits) in Entry() 119 void SetNextPosDelta(uint32_t next_pos_delta, uint32_t mask_bits) { in SetNextPosDelta() 130 bool IsLast(uint32_t mask_bits) const { in IsLast() 134 uint32_t GetStringOffset() const { in GetStringOffset() 138 uint32_t GetNextPosDelta(uint32_t mask_bits) const { in GetNextPosDelta() [all …]
|
D | dex_file_structs.h | 37 uint32_t size_; 38 uint32_t offset_; 42 uint32_t size_; 45 size_t Size() const { return sizeof(uint32_t) + (size_ * sizeof(MapItem)); } in Size() 53 uint32_t string_data_off_; // offset in bytes from the base address 82 uint32_t parameters_off_; // file offset to type_list for parameter types 111 uint32_t access_flags_; 114 uint32_t interfaces_off_; // file offset to TypeList 116 uint32_t annotations_off_; // file offset to annotations_directory_item 117 uint32_t class_data_off_; // file offset to class_data_item [all …]
|
D | compact_offset_table.h | 43 Accessor(const uint8_t* data_begin, uint32_t minimum_offset, uint32_t table_offset); 46 uint32_t GetOffset(uint32_t index) const; 49 const uint32_t* const table_; 50 const uint32_t minimum_offset_; 55 static void Build(const std::vector<uint32_t>& offsets, std::vector<uint8_t>* out_data); 58 static void Build(const std::vector<uint32_t>& offsets, 60 uint32_t* out_min_offset, 61 uint32_t* out_table_offset); 64 static constexpr size_t kAlignment = sizeof(uint32_t);
|
D | compact_offset_table.cc | 27 uint32_t minimum_offset, in Accessor() 28 uint32_t table_offset) in Accessor() 29 : table_(reinterpret_cast<const uint32_t*>(data_begin + table_offset)), in Accessor() 34 : Accessor(data_begin + 2 * sizeof(uint32_t), in Accessor() 35 reinterpret_cast<const uint32_t*>(data_begin)[0], in Accessor() 36 reinterpret_cast<const uint32_t*>(data_begin)[1]) {} in Accessor() 38 uint32_t CompactOffsetTable::Accessor::GetOffset(uint32_t index) const { in GetOffset() 39 const uint32_t offset = table_[index / kElementsPerIndex]; in GetOffset() 55 uint32_t current_offset = minimum_offset_; in GetOffset() 63 void CompactOffsetTable::Build(const std::vector<uint32_t>& offsets, in Build() [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_default_externs.h | 38 extern "C" void* art_quick_resolve_type(uint32_t); 39 extern "C" void* art_quick_resolve_type_and_verify_access(uint32_t); 40 extern "C" void* art_quick_resolve_method_handle(uint32_t); 41 extern "C" void* art_quick_resolve_method_type(uint32_t); 42 extern "C" void* art_quick_resolve_string(uint32_t); 45 extern "C" int art_quick_set8_instance(uint32_t, void*, int8_t); 46 extern "C" int art_quick_set8_static(uint32_t, int8_t); 47 extern "C" int art_quick_set16_instance(uint32_t, void*, int16_t); 48 extern "C" int art_quick_set16_static(uint32_t, int16_t); 49 extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t); [all …]
|
/art/runtime/ |
D | oat.h | 54 uint32_t dex_file_count, 61 uint32_t GetChecksum() const; 62 void SetChecksum(uint32_t checksum); 63 uint32_t GetDexFileCount() const { in GetDexFileCount() 67 uint32_t GetOatDexFilesOffset() const; 68 void SetOatDexFilesOffset(uint32_t oat_dex_files_offset); 69 uint32_t GetExecutableOffset() const; 70 void SetExecutableOffset(uint32_t executable_offset); 73 uint32_t GetJniDlsymLookupTrampolineOffset() const; 74 void SetJniDlsymLookupTrampolineOffset(uint32_t offset); [all …]
|
D | image.h | 47 ImageSection(uint32_t offset, uint32_t size) : offset_(offset), size_(size) { } in ImageSection() 51 uint32_t Offset() const { in Offset() 55 uint32_t Size() const { in Size() 59 uint32_t End() const { in End() 68 uint32_t offset_; 69 uint32_t size_; 77 enum StorageMode : uint32_t { 89 uint32_t data_offset, in Block() 90 uint32_t data_size, in Block() 91 uint32_t image_offset, in Block() [all …]
|
D | mapping_table.h | 31 uint32_t TotalSize() const PURE { in TotalSize() 40 uint32_t DexToPcSize() const PURE { in DexToPcSize() 45 uint32_t total_size = DecodeUnsignedLeb128(&table); in DexToPcSize() 46 uint32_t pc_to_dex_size = DecodeUnsignedLeb128(&table); in DexToPcSize() 54 uint32_t total_size = DecodeUnsignedLeb128(&table); in FirstDexToPcPtr() 55 uint32_t pc_to_dex_size = DecodeUnsignedLeb128(&table); in FirstDexToPcPtr() 58 for (uint32_t i = 0; i < pc_to_dex_size; ++i) { in FirstDexToPcPtr() 68 DexToPcIterator(const MappingTable* table, uint32_t element) : in DexToPcIterator() 76 dex_pc_ = static_cast<uint32_t>(DecodeSignedLeb128(&encoded_table_ptr_)); in DexToPcIterator() 82 uint32_t NativePcOffset() const { in NativePcOffset() [all …]
|
/art/dex2oat/linker/arm64/ |
D | relative_patcher_arm64.h | 37 uint32_t ReserveSpace(uint32_t offset, 40 uint32_t ReserveSpaceEnd(uint32_t offset) override; 41 uint32_t WriteThunks(OutputStream* out, uint32_t offset) override; 43 uint32_t literal_offset, 44 uint32_t patch_offset, 45 uint32_t target_offset) override; 48 uint32_t patch_offset, 49 uint32_t target_offset) override; 52 uint32_t patch_offset) override; 55 uint32_t patch_offset) override; [all …]
|
D | relative_patcher_arm64_test.cc | 45 static constexpr uint32_t kNopInsn = 0xd503201f; 48 static constexpr uint32_t kBlPlus0 = 0x94000000u; 49 static constexpr uint32_t kBPlus0 = 0x14000000u; 52 static constexpr uint32_t kBlPlusMax = 0x95ffffffu; 53 static constexpr uint32_t kBlMinusMax = 0x96000000u; 56 static constexpr uint32_t kLdrWInsn = 0xb9400000u; 59 static constexpr uint32_t kLdrWLsl2Insn = 0xb8607800u; 62 static constexpr uint32_t kLdurWInsn = 0xb8400000u; 65 static constexpr uint32_t kAddXInsn = 0x91000000u; 66 static constexpr uint32_t kAddsXInsn = 0xb1000000u; [all …]
|
D | relative_patcher_arm64.cc | 46 constexpr uint32_t kMaxMethodCallPositiveDisplacement = (1u << 27) - 4u; 47 constexpr uint32_t kMaxMethodCallNegativeDisplacement = (1u << 27); 52 constexpr uint32_t kMaxBcondPositiveDisplacement = (1u << 20) - 4u; 53 constexpr uint32_t kMaxBcondNegativeDisplacement = (1u << 20); 56 constexpr uint32_t kAdrpThunkSize = 8u; 76 inline uint32_t MaxExtraSpace(size_t num_adrp, size_t code_size) { in MaxExtraSpace() 80 uint32_t alignment_bytes = in MaxExtraSpace() 100 uint32_t Arm64RelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() 126 uint32_t max_extra_space = MaxExtraSpace(num_adrp, code.size()); in ReserveSpace() 134 uint32_t quick_code_offset = compiled_method->AlignCode(offset + sizeof(OatQuickMethodHeader)); in ReserveSpace() [all …]
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_thumb2.cc | 43 constexpr uint32_t kMaxMethodCallPositiveDisplacement = (1u << 24) - 2 + kPcDisplacement; 44 constexpr uint32_t kMaxMethodCallNegativeDisplacement = (1u << 24) - kPcDisplacement; 49 constexpr uint32_t kMaxBcondPositiveDisplacement = (1u << 20) - 2u + kPcDisplacement; 50 constexpr uint32_t kMaxBcondNegativeDisplacement = (1u << 20) - kPcDisplacement; 58 uint32_t literal_offset, in PatchCall() 59 uint32_t patch_offset, in PatchCall() 60 uint32_t target_offset) { in PatchCall() 63 uint32_t displacement = CalculateMethodCallDisplacement(patch_offset, target_offset & ~1u); in PatchCall() 69 uint32_t patch_offset, in PatchPcRelativeReference() 70 uint32_t target_offset) { in PatchPcRelativeReference() [all …]
|
D | relative_patcher_thumb2.h | 38 uint32_t literal_offset, 39 uint32_t patch_offset, 40 uint32_t target_offset) override; 43 uint32_t patch_offset, 44 uint32_t target_offset) override; 47 uint32_t patch_offset) override; 50 uint32_t patch_offset) override; 53 uint32_t MaxPositiveDisplacement(const ThunkKey& key) override; 54 uint32_t MaxNegativeDisplacement(const ThunkKey& key) override; 57 static void PatchBl(std::vector<uint8_t>* code, uint32_t literal_offset, uint32_t displacement); [all …]
|
D | relative_patcher_arm_base.h | 32 uint32_t ReserveSpace(uint32_t offset, 35 uint32_t ReserveSpaceEnd(uint32_t offset) override; 36 uint32_t WriteThunks(OutputStream* out, uint32_t offset) override; 37 std::vector<debug::MethodDebugInfo> GenerateThunkDebugInfo(uint32_t executable_offset) override; 53 explicit ThunkKey(ThunkType type, uint32_t custom_value1 = 0u, uint32_t custom_value2 = 0u) 60 uint32_t GetCustomValue1() const { in GetCustomValue1() 64 uint32_t GetCustomValue2() const { in GetCustomValue2() 70 uint32_t custom_value1_; 71 uint32_t custom_value2_; 91 uint32_t ReserveSpaceInternal(uint32_t offset, [all …]
|
/art/runtime/jit/ |
D | profile_saver_options.h | 23 static constexpr uint32_t kMinSavePeriodMs = 40 * 1000; // 40 seconds 24 static constexpr uint32_t kSaveResolvedClassesDelayMs = 5 * 1000; // 5 seconds 26 static constexpr uint32_t kHotStartupMethodSamples = 1; 27 static constexpr uint32_t kHotStartupMethodSamplesLowRam = 256; 28 static constexpr uint32_t kMinMethodsToSave = 10; 29 static constexpr uint32_t kMinClassesToSave = 10; 30 static constexpr uint32_t kMinNotificationBeforeWake = 10; 31 static constexpr uint32_t kMaxNotificationBeforeWake = 50; 32 static constexpr uint32_t kHotStartupMethodSamplesNotSet = std::numeric_limits<uint32_t>::max(); 50 uint32_t min_save_period_ms, [all …]
|
/art/libartbase/base/ |
D | bit_vector.h | 50 std::iterator<std::forward_iterator_tag, uint32_t, ptrdiff_t, void, uint32_t> { 58 uint32_t operator*() const; 76 uint32_t BitSize() const { in BitSize() 80 uint32_t FindIndex(uint32_t start_index) const; 81 const uint32_t* const bit_storage_; 82 const uint32_t storage_size_; // Size of vector in words. 83 uint32_t bit_index_; // Current index (size in bits). 116 BitVector(uint32_t start_bits, 122 uint32_t storage_size, 123 uint32_t* storage); [all …]
|
D | sdk_version.h | 25 enum class SdkVersion : uint32_t { 37 kMax = std::numeric_limits<uint32_t>::max(), 40 inline bool IsSdkVersionSetAndMoreThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndMoreThan() 41 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs > static_cast<uint32_t>(rhs); in IsSdkVersionSetAndMoreThan() 44 inline bool IsSdkVersionSetAndAtLeast(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtLeast() 45 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs >= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtLeast() 48 inline bool IsSdkVersionSetAndAtMost(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtMost() 49 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs <= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtMost() 52 inline bool IsSdkVersionSetAndLessThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndLessThan() 53 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs < static_cast<uint32_t>(rhs); in IsSdkVersionSetAndLessThan()
|
D | bit_vector.cc | 29 uint32_t storage_size, in BitVector() 30 uint32_t* storage) in BitVector() 41 BitVector::BitVector(uint32_t start_bits, in BitVector() 47 static_cast<uint32_t*>(allocator->Alloc(BitsToWords(start_bits) * kWordBytes))) { in BitVector() 57 static_cast<uint32_t*>(allocator->Alloc(src.storage_size_ * kWordBytes))) { in BitVector() 109 uint32_t this_storage = storage_[i]; in IsSubsetOf() 110 uint32_t other_storage = other->storage_[i]; in IsSubsetOf() 119 uint32_t src_storage_size = src->storage_size_; in Intersect() 122 uint32_t min_size = (storage_size_ < src_storage_size) ? storage_size_ : src_storage_size; in Intersect() 124 uint32_t idx; in Intersect() [all …]
|
/art/runtime/mirror/ |
D | class_flags.h | 26 static constexpr uint32_t kClassFlagNormal = 0x00000000; 30 static constexpr uint32_t kClassFlagNoReferenceFields = 0x00000001; 33 static constexpr uint32_t kClassFlagString = 0x00000004; 36 static constexpr uint32_t kClassFlagObjectArray = 0x00000008; 39 static constexpr uint32_t kClassFlagClass = 0x00000010; 42 static constexpr uint32_t kClassFlagClassLoader = 0x00000020; 45 static constexpr uint32_t kClassFlagDexCache = 0x00000040; 48 static constexpr uint32_t kClassFlagSoftReference = 0x00000080; 51 static constexpr uint32_t kClassFlagWeakReference = 0x00000100; 54 static constexpr uint32_t kClassFlagFinalizerReference = 0x00000200; [all …]
|
/art/dex2oat/linker/ |
D | multi_oat_relative_patcher_test.cc | 36 uint32_t ReserveSpace(uint32_t offset, in ReserveSpace() 46 uint32_t ReserveSpaceEnd(uint32_t offset) override { in ReserveSpaceEnd() 54 uint32_t WriteThunks(OutputStream* out, uint32_t offset) override { in WriteThunks() 80 uint32_t literal_offset, in PatchCall() 81 uint32_t patch_offset, in PatchCall() 82 uint32_t target_offset) override { in PatchCall() 90 uint32_t patch_offset, in PatchPcRelativeReference() 91 uint32_t target_offset) override { in PatchPcRelativeReference() 99 uint32_t patch_offset ATTRIBUTE_UNUSED) override { in PatchEntrypointCall() 105 uint32_t patch_offset ATTRIBUTE_UNUSED) override { in PatchBakerReadBarrierBranch() [all …]
|
D | relative_patcher.h | 81 virtual std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) = 0; 101 uint32_t CodeAlignmentSize() const { in CodeAlignmentSize() 105 uint32_t RelativeCallThunksSize() const { in RelativeCallThunksSize() 109 uint32_t MiscThunksSize() const { in MiscThunksSize() 114 virtual uint32_t ReserveSpace(uint32_t offset, 122 virtual uint32_t ReserveSpaceEnd(uint32_t offset) = 0; 125 virtual uint32_t WriteThunks(OutputStream* out, uint32_t offset) = 0; 130 uint32_t literal_offset, 131 uint32_t patch_offset, 132 uint32_t target_offset) = 0; [all …]
|
D | multi_oat_relative_patcher.h | 40 using const_iterator = SafeMap<MethodReference, uint32_t>::const_iterator; 56 void StartOatFile(uint32_t adjustment); 59 uint32_t GetOffset(MethodReference method_ref) { in GetOffset() 65 void SetOffset(MethodReference method_ref, uint32_t offset) { in SetOffset() 70 uint32_t ReserveSpace(uint32_t offset, in ReserveSpace() 80 uint32_t ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() 88 uint32_t WriteThunks(OutputStream* out, uint32_t offset) { in WriteThunks() 99 uint32_t literal_offset, in PatchCall() 100 uint32_t patch_offset, in PatchCall() 101 uint32_t target_offset) { in PatchCall() [all …]
|
D | oat_writer.h | 160 uint32_t location_checksum, 321 size_t InitOatHeader(uint32_t num_dex_files, SafeMap<std::string, std::string>* key_value_store); 346 bool WriteCodeAlignment(OutputStream* out, uint32_t aligned_code_delta); 347 bool WriteUpTo16BytesAlignment(OutputStream* out, uint32_t size, uint32_t* stat); 412 uint32_t oat_checksum_; 440 SafeMap<uint32_t, size_t> data_bimg_rel_ro_entries_; 485 uint32_t size_vdex_header_; 486 uint32_t size_vdex_checksums_; 487 uint32_t size_dex_file_alignment_; 488 uint32_t size_executable_offset_alignment_; [all …]
|
/art/runtime/arch/arm/ |
D | quick_entrypoints_cc_arm.cc | 23 extern "C" void art_quick_invoke_stub_internal(ArtMethod*, uint32_t*, uint32_t, 24 Thread* self, JValue* result, uint32_t, uint32_t*, 25 uint32_t*); 28 static void quick_invoke_reg_setup(ArtMethod* method, uint32_t* args, uint32_t args_size, in quick_invoke_reg_setup() 31 uint32_t core_reg_args[4]; // r0 ~ r3 in quick_invoke_reg_setup() 32 uint32_t fp_reg_args[16]; // s0 ~ s15 (d0 ~ d7) in quick_invoke_reg_setup() 33 uint32_t gpr_index = 1; // Index into core registers. Reserve r0 for ArtMethod*. in quick_invoke_reg_setup() 34 uint32_t fpr_index = 0; // Index into float registers. in quick_invoke_reg_setup() 35 uint32_t fpr_double_index = 0; // Index into float registers for doubles. in quick_invoke_reg_setup() 36 uint32_t arg_index = 0; // Index into argument array. in quick_invoke_reg_setup() [all …]
|