/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); 115 Entry(uint32_t str_offset, uint32_t hash, uint32_t class_def_index, uint32_t mask_bits) in Entry() 121 void SetNextPosDelta(uint32_t next_pos_delta, uint32_t mask_bits) { in SetNextPosDelta() 132 bool IsLast(uint32_t mask_bits) const { in IsLast() 136 uint32_t GetStringOffset() const { in GetStringOffset() 140 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 …]
|
/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 | 68 uint32_t dex_file_count, 75 uint32_t GetChecksum() const; 76 void SetChecksum(uint32_t checksum); 77 uint32_t GetDexFileCount() const { in GetDexFileCount() 81 uint32_t GetOatDexFilesOffset() const; 82 void SetOatDexFilesOffset(uint32_t oat_dex_files_offset); 83 uint32_t GetBcpBssInfoOffset() const; 84 void SetBcpBssInfoOffset(uint32_t bcp_info_offset); 85 uint32_t GetExecutableOffset() const; 86 void SetExecutableOffset(uint32_t executable_offset); [all …]
|
D | image.h | 51 ImageSection(uint32_t offset, uint32_t size) : offset_(offset), size_(size) { } in ImageSection() 55 uint32_t Offset() const { in Offset() 59 uint32_t Size() const { in Size() 63 uint32_t End() const { in End() 72 uint32_t offset_; 73 uint32_t size_; 81 enum StorageMode : uint32_t { 93 uint32_t data_offset, in Block() 94 uint32_t data_size, in Block() 95 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/runtime/jit/ |
D | profile_saver_options.h | 23 static constexpr uint32_t kMinSavePeriodMs = 40 * 1000; // 40 seconds 26 static constexpr uint32_t kMinFirstSaveMsNotSet = 0; 27 static constexpr uint32_t kSaveResolvedClassesDelayMs = 5 * 1000; // 5 seconds 29 static constexpr uint32_t kHotStartupMethodSamples = 1; 30 static constexpr uint32_t kHotStartupMethodSamplesLowRam = 256; 31 static constexpr uint32_t kMinMethodsToSave = 10; 32 static constexpr uint32_t kMinClassesToSave = 10; 33 static constexpr uint32_t kMinNotificationBeforeWake = 10; 34 static constexpr uint32_t kMaxNotificationBeforeWake = 50; 35 static constexpr uint32_t kHotStartupMethodSamplesNotSet = std::numeric_limits<uint32_t>::max(); [all …]
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_thumb2.cc | 42 constexpr uint32_t kMaxMethodCallPositiveDisplacement = (1u << 24) - 2 + kPcDisplacement; 43 constexpr uint32_t kMaxMethodCallNegativeDisplacement = (1u << 24) - kPcDisplacement; 48 constexpr uint32_t kMaxBcondPositiveDisplacement = (1u << 20) - 2u + kPcDisplacement; 49 constexpr uint32_t kMaxBcondNegativeDisplacement = (1u << 20) - kPcDisplacement; 57 uint32_t literal_offset, in PatchCall() 58 uint32_t patch_offset, in PatchCall() 59 uint32_t target_offset) { in PatchCall() 62 uint32_t displacement = CalculateMethodCallDisplacement(patch_offset, target_offset & ~1u); in PatchCall() 68 uint32_t patch_offset, in PatchPcRelativeReference() 69 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 …]
|
D | relative_patcher_thumb2_test.cc | 44 static const uint32_t kPcInsnOffset; 47 static constexpr uint32_t kPcAdjustment = 4u; 50 static constexpr uint32_t kBlPlus0 = 0xf000f800u; 51 static constexpr uint32_t kBlMinus256 = 0xf7ffff00u; 54 static constexpr uint32_t kBlPlusMax = 0xf3ffd7ffu; 55 static constexpr uint32_t kBlMinusMax = 0xf400d000u; 58 static constexpr uint32_t kBneWPlus0 = 0xf0408000u; 61 static constexpr uint32_t kLdrInsn = 0x6800u; 64 static constexpr uint32_t kLdrWInsn = 0xf8d00000u; 67 static constexpr uint32_t kLdrNegativeOffset = 0xf8500c00u; [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 | 45 constexpr uint32_t kMaxMethodCallPositiveDisplacement = (1u << 27) - 4u; 46 constexpr uint32_t kMaxMethodCallNegativeDisplacement = (1u << 27); 51 constexpr uint32_t kMaxBcondPositiveDisplacement = (1u << 20) - 4u; 52 constexpr uint32_t kMaxBcondNegativeDisplacement = (1u << 20); 55 constexpr uint32_t kAdrpThunkSize = 8u; 78 inline uint32_t MaxExtraSpace(size_t num_adrp, size_t code_size) { in MaxExtraSpace() 82 uint32_t alignment_bytes = in MaxExtraSpace() 102 uint32_t Arm64RelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() 128 uint32_t max_extra_space = MaxExtraSpace(num_adrp, code.size()); in ReserveSpace() 136 uint32_t quick_code_offset = compiled_method->AlignCode(offset + sizeof(OatQuickMethodHeader)); in ReserveSpace() [all …]
|
/art/dex2oat/linker/ |
D | oat_writer.h | 152 uint32_t location_checksum); 294 size_t InitOatHeader(uint32_t num_dex_files, SafeMap<std::string, std::string>* key_value_store); 320 uint32_t method_bss_mapping_offset, 321 uint32_t type_bss_mapping_offset, 322 uint32_t public_type_bss_mapping_offset, 323 uint32_t package_type_bss_mapping_offset, 324 uint32_t string_bss_mapping_offset); 332 /*inout*/ uint32_t& method_bss_mapping_offset, 333 /*inout*/ uint32_t& type_bss_mapping_offset, 334 /*inout*/ uint32_t& public_type_bss_mapping_offset, [all …]
|
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 …]
|
/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/libartbase/base/ |
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() 58 static_cast<uint32_t*>(allocator->Alloc(src.storage_size_ * kWordBytes))) { in BitVector() 113 uint32_t this_storage = storage_[i]; in IsSubsetOf() 114 uint32_t other_storage = other->storage_[i]; in IsSubsetOf() 123 uint32_t src_storage_size = src->storage_size_; in Intersect() 126 uint32_t min_size = (storage_size_ < src_storage_size) ? storage_size_ : src_storage_size; in Intersect() 128 uint32_t idx; in Intersect() [all …]
|
D | sdk_version.h | 25 enum class SdkVersion : uint32_t { 41 kMax = std::numeric_limits<uint32_t>::max(), 44 inline bool IsSdkVersionSetAndMoreThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndMoreThan() 45 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs > static_cast<uint32_t>(rhs); in IsSdkVersionSetAndMoreThan() 48 inline bool IsSdkVersionSetAndAtLeast(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtLeast() 49 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs >= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtLeast() 52 inline bool IsSdkVersionSetAndAtMost(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtMost() 53 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs <= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtMost() 56 inline bool IsSdkVersionSetAndLessThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndLessThan() 57 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs < static_cast<uint32_t>(rhs); in IsSdkVersionSetAndLessThan()
|
D | bit_utils_test.cc | 27 static_assert(31 == CLZ<uint32_t>(1u), "TestCLZ32#1"); 28 static_assert(30 == CLZ<uint32_t>(2u), "TestCLZ32#2"); 29 static_assert(16 == CLZ<uint32_t>(0x00008765u), "TestCLZ32#3"); 30 static_assert(15 == CLZ<uint32_t>(0x00012345u), "TestCLZ32#4"); 31 static_assert(1 == CLZ<uint32_t>(0x43214321u), "TestCLZ32#5"); 32 static_assert(0 == CLZ<uint32_t>(0x87654321u), "TestCLZ32#6"); 45 static_assert(0 == CTZ<uint32_t>(1u), "TestCTZ32#1"); 46 static_assert(1 == CTZ<uint32_t>(2u), "TestCTZ32#2"); 47 static_assert(15 == CTZ<uint32_t>(0x45678000u), "TestCTZ32#3"); 48 static_assert(16 == CTZ<uint32_t>(0x43210000u), "TestCTZ32#4"); [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*); 29 static void quick_invoke_reg_setup(ArtMethod* method, uint32_t* args, uint32_t args_size, in quick_invoke_reg_setup() 32 uint32_t core_reg_args[4]; // r0 ~ r3 in quick_invoke_reg_setup() 33 uint32_t fp_reg_args[16]; // s0 ~ s15 (d0 ~ d7) in quick_invoke_reg_setup() 34 uint32_t gpr_index = 1; // Index into core registers. Reserve r0 for ArtMethod*. in quick_invoke_reg_setup() 35 uint32_t fpr_index = 0; // Index into float registers. in quick_invoke_reg_setup() 36 uint32_t fpr_double_index = 0; // Index into float registers for doubles. in quick_invoke_reg_setup() 37 uint32_t arg_index = 0; // Index into argument array. in quick_invoke_reg_setup() [all …]
|
/art/compiler/optimizing/ |
D | instruction_builder.h | 72 bool ProcessDexInstruction(const Instruction& instruction, uint32_t dex_pc); 75 HBasicBlock* FindBlockStartingAt(uint32_t dex_pc) const; 83 HInstruction* LoadLocal(uint32_t register_index, DataType::Type type) const; 84 HInstruction* LoadNullCheckedLocal(uint32_t register_index, uint32_t dex_pc); 85 void UpdateLocal(uint32_t register_index, HInstruction* instruction); 94 void Unop_12x(const Instruction& instruction, DataType::Type type, uint32_t dex_pc); 97 void Binop_23x(const Instruction& instruction, DataType::Type type, uint32_t dex_pc); 100 void Binop_23x_shift(const Instruction& instruction, DataType::Type type, uint32_t dex_pc); 105 uint32_t dex_pc); 108 void Binop_12x(const Instruction& instruction, DataType::Type type, uint32_t dex_pc); [all …]
|