Home
last modified time | relevance | path

Searched refs:uint32_t (Results 1 – 25 of 677) sorted by relevance

12345678910>>...28

/art/libdexfile/dex/
Dmodifiers.h26 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 …]
Dtype_lookup_table.h44 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 …]
Ddex_file_structs.h37 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 …]
Dcompact_offset_table.h43 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);
/art/runtime/entrypoints/quick/
Dquick_default_externs.h38 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/dex2oat/linker/arm64/
Drelative_patcher_arm64.h37 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 …]
Drelative_patcher_arm64_test.cc45 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 …]
Drelative_patcher_arm64.cc46 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/runtime/
Doat.h55 uint32_t dex_file_count,
62 uint32_t GetChecksum() const;
63 void SetChecksum(uint32_t checksum);
64 uint32_t GetDexFileCount() const { in GetDexFileCount()
68 uint32_t GetOatDexFilesOffset() const;
69 void SetOatDexFilesOffset(uint32_t oat_dex_files_offset);
70 uint32_t GetExecutableOffset() const;
71 void SetExecutableOffset(uint32_t executable_offset);
74 uint32_t GetJniDlsymLookupTrampolineOffset() const;
75 void SetJniDlsymLookupTrampolineOffset(uint32_t offset);
[all …]
Dimage.h47 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 …]
Dmapping_table.h31 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/arm/
Drelative_patcher_thumb2.cc43 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 …]
Drelative_patcher_thumb2.h38 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 …]
Drelative_patcher_arm_base.h32 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/
Dprofile_saver_options.h23 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/
Dbit_vector.h50 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 …]
Dsdk_version.h25 enum class SdkVersion : uint32_t {
38 kMax = std::numeric_limits<uint32_t>::max(),
41 inline bool IsSdkVersionSetAndMoreThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndMoreThan()
42 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs > static_cast<uint32_t>(rhs); in IsSdkVersionSetAndMoreThan()
45 inline bool IsSdkVersionSetAndAtLeast(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtLeast()
46 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs >= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtLeast()
49 inline bool IsSdkVersionSetAndAtMost(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtMost()
50 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs <= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtMost()
53 inline bool IsSdkVersionSetAndLessThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndLessThan()
54 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs < static_cast<uint32_t>(rhs); in IsSdkVersionSetAndLessThan()
Dbit_vector.cc29 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 …]
Dbit_utils_test.cc27 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/
Dclass_flags.h26 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/
Dmulti_oat_relative_patcher_test.cc36 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 …]
Drelative_patcher.h81 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 …]
Doat_writer.h158 uint32_t location_checksum,
315 size_t InitOatHeader(uint32_t num_dex_files, SafeMap<std::string, std::string>* key_value_store);
340 bool WriteCodeAlignment(OutputStream* out, uint32_t aligned_code_delta);
341 bool WriteUpTo16BytesAlignment(OutputStream* out, uint32_t size, uint32_t* stat);
408 uint32_t oat_checksum_;
436 SafeMap<uint32_t, size_t> data_bimg_rel_ro_entries_;
481 uint32_t size_vdex_header_;
482 uint32_t size_vdex_checksums_;
483 uint32_t size_dex_file_alignment_;
484 uint32_t size_quickening_table_offset_;
[all …]
Dmulti_oat_relative_patcher.h40 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/arch/arm/
Dquick_entrypoints_cc_arm.cc23 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 …]

12345678910>>...28