/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(std::string_view 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/oat/ |
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 | 52 ImageSection(uint32_t offset, uint32_t size) : offset_(offset), size_(size) { } in ImageSection() 56 uint32_t Offset() const { in Offset() 60 uint32_t Size() const { in Size() 64 uint32_t End() const { in End() 73 uint32_t offset_; 74 uint32_t size_; 82 enum StorageMode : uint32_t { 94 uint32_t data_offset, in Block() 95 uint32_t data_size, in Block() 96 uint32_t image_offset, in Block() [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 | 34 uint32_t literal_offset, 35 uint32_t patch_offset, 36 uint32_t target_offset) override; 39 uint32_t patch_offset, 40 uint32_t target_offset) override; 43 uint32_t patch_offset) override; 46 uint32_t patch_offset) override; 49 uint32_t MaxPositiveDisplacement(const ThunkKey& key) override; 50 uint32_t MaxNegativeDisplacement(const ThunkKey& key) override; 53 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/dex2oat/linker/arm64/ |
D | relative_patcher_arm64.h | 33 uint32_t ReserveSpace(uint32_t offset, 36 uint32_t ReserveSpaceEnd(uint32_t offset) override; 37 uint32_t WriteThunks(OutputStream* out, uint32_t offset) override; 39 uint32_t literal_offset, 40 uint32_t patch_offset, 41 uint32_t target_offset) override; 44 uint32_t patch_offset, 45 uint32_t target_offset) override; 48 uint32_t patch_offset) override; 51 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; 80 inline uint32_t MaxExtraSpace(size_t num_adrp, size_t code_size) { in MaxExtraSpace() 84 uint32_t alignment_bytes = in MaxExtraSpace() 104 uint32_t Arm64RelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() 130 uint32_t max_extra_space = MaxExtraSpace(num_adrp, code.size()); in ReserveSpace() 138 uint32_t quick_code_offset = compiled_method->AlignCode(offset + sizeof(OatQuickMethodHeader)); in ReserveSpace() [all …]
|
/art/dex2oat/linker/ |
D | oat_writer.h | 150 uint32_t location_checksum); 295 size_t InitOatHeader(uint32_t num_dex_files, SafeMap<std::string, std::string>* key_value_store); 321 uint32_t method_bss_mapping_offset, 322 uint32_t type_bss_mapping_offset, 323 uint32_t public_type_bss_mapping_offset, 324 uint32_t package_type_bss_mapping_offset, 325 uint32_t string_bss_mapping_offset, 326 uint32_t method_type_bss_mapping_offset); 335 /*inout*/ uint32_t& method_bss_mapping_offset, 336 /*inout*/ uint32_t& 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 [[maybe_unused]] uint32_t patch_offset) override { in PatchEntrypointCall() 105 [[maybe_unused]] uint32_t patch_offset) 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 …]
|
/art/dex2oat/linker/riscv64/ |
D | relative_patcher_riscv64.cc | 33 uint32_t Riscv64RelativePatcher::ReserveSpace( in ReserveSpace() 34 uint32_t offset, in ReserveSpace() 42 uint32_t Riscv64RelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() 48 uint32_t Riscv64RelativePatcher::WriteThunks([[maybe_unused]] OutputStream* out, uint32_t offset) { in WriteThunks() 55 [[maybe_unused]] uint32_t literal_offset, in PatchCall() 56 [[maybe_unused]] uint32_t patch_offset, in PatchCall() 57 [[maybe_unused]] uint32_t target_offset) { in PatchCall() 64 uint32_t patch_offset, in PatchPcRelativeReference() 65 uint32_t target_offset) { in PatchPcRelativeReference() 68 uint32_t literal_offset = patch.LiteralOffset(); in PatchPcRelativeReference() [all …]
|
D | relative_patcher_riscv64.h | 33 uint32_t ReserveSpace(uint32_t offset, 36 uint32_t ReserveSpaceEnd(uint32_t offset) override; 37 uint32_t WriteThunks(OutputStream* out, uint32_t offset) override; 39 uint32_t literal_offset, 40 uint32_t patch_offset, 41 uint32_t target_offset) override; 44 uint32_t patch_offset, 45 uint32_t target_offset) override; 48 uint32_t patch_offset) override; 51 uint32_t patch_offset) override; [all …]
|
D | relative_patcher_riscv64_test.cc | 33 static constexpr uint32_t kCNopInsn = 0x0001u; 37 static constexpr uint32_t kAuipcInsn = 0x00000017u; 38 static constexpr uint32_t kAddiInsn = 0x00000013u; 39 static constexpr uint32_t kLwuInsn = 0x00006003u; 40 static constexpr uint32_t kLdInsn = 0x00003003u; 43 static constexpr uint32_t kUnpatchedOffset = 0x12345678u; 45 static void PushBackInsn16(std::vector<uint8_t>* code, uint32_t insn16) { in PushBackInsn16() 53 static void PushBackInsn32(std::vector<uint8_t>* code, uint32_t insn32) { in PushBackInsn32() 63 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() 70 static constexpr uint32_t ExtractRs1ToRd(uint32_t insn) { in ExtractRs1ToRd() [all …]
|
/art/runtime/jit/ |
D | profile_saver_options.h | 24 static constexpr uint32_t kMinSavePeriodMs = 40 * 1000; // 40 seconds 27 static constexpr uint32_t kMinFirstSaveMsNotSet = 0; 28 static constexpr uint32_t kSaveResolvedClassesDelayMs = 5 * 1000; // 5 seconds 29 static constexpr uint32_t kMinMethodsToSave = 10; 30 static constexpr uint32_t kMinClassesToSave = 10; 31 static constexpr uint32_t kMinNotificationBeforeWake = 10; 32 static constexpr uint32_t kMaxNotificationBeforeWake = 50; 52 uint32_t min_save_period_ms, 53 uint32_t min_first_save_ms, 54 uint32_t save_resolved_classes_delay_ms, [all …]
|
/art/libartbase/base/ |
D | bit_vector.h | 40 static constexpr uint32_t kWordBytes = sizeof(uint32_t); 41 static constexpr uint32_t kWordBits = kWordBytes * 8; 59 using value_type = uint32_t; 70 uint32_t operator*() const; 88 uint32_t BitSize() const { in BitSize() 92 uint32_t FindIndex(uint32_t start_index) const; 93 const uint32_t* const bit_storage_; 94 const uint32_t storage_size_; // Size of vector in words. 95 uint32_t bit_index_; // Current index (size in bits). 128 BitVector(uint32_t start_bits, [all …]
|
D | bit_vector.cc | 29 uint32_t storage_size, in BitVector() 30 uint32_t* storage) in BitVector() 41 BitVector::BitVector(uint32_t start_bits, bool expandable, Allocator* allocator) in BitVector() 45 static_cast<uint32_t*>(allocator->Alloc(BitsToWords(start_bits) * kWordBytes))) {} in BitVector() 53 static_cast<uint32_t*>(allocator->Alloc(src.storage_size_ * kWordBytes))) { in BitVector() 108 uint32_t this_storage = storage_[i]; in IsSubsetOf() 109 uint32_t other_storage = other->storage_[i]; in IsSubsetOf() 118 uint32_t src_storage_size = src->storage_size_; in Intersect() 121 uint32_t min_size = (storage_size_ < src_storage_size) ? storage_size_ : src_storage_size; in Intersect() 123 uint32_t idx; in Intersect() [all …]
|
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/mirror/ |
D | class_flags.h | 28 static constexpr uint32_t kClassFlagNormal = 0x00000000; 32 static constexpr uint32_t kClassFlagNoReferenceFields = 0x00000001; 35 static constexpr uint32_t kClassFlagString = 0x00000004; 38 static constexpr uint32_t kClassFlagObjectArray = 0x00000008; 41 static constexpr uint32_t kClassFlagClass = 0x00000010; 44 static constexpr uint32_t kClassFlagClassLoader = 0x00000020; 47 static constexpr uint32_t kClassFlagDexCache = 0x00000040; 50 static constexpr uint32_t kClassFlagSoftReference = 0x00000080; 53 static constexpr uint32_t kClassFlagWeakReference = 0x00000100; 56 static constexpr uint32_t kClassFlagFinalizerReference = 0x00000200; [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 …]
|
/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 …]
|