Home
last modified time | relevance | path

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

12345678910>>...28

/art/libdexfile/dex/
Dmodifiers.h24 static constexpr uint32_t kAccPublic = 0x0001; // class, field, method, ic
25 static constexpr uint32_t kAccPrivate = 0x0002; // field, method, ic
26 static constexpr uint32_t kAccProtected = 0x0004; // field, method, ic
27 static constexpr uint32_t kAccStatic = 0x0008; // field, method, ic
28 static constexpr uint32_t kAccFinal = 0x0010; // class, field, method, ic
29 static constexpr uint32_t kAccSynchronized = 0x0020; // method (only allowed on natives)
30 static constexpr uint32_t kAccSuper = 0x0020; // class (not used in dex)
31 static constexpr uint32_t kAccVolatile = 0x0040; // field
32 static constexpr uint32_t kAccBridge = 0x0040; // method (1.5)
33 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 …]
Ddex_file_verifier.h73 bool CheckValidOffsetAndSize(uint32_t offset, uint32_t size, size_t alignment, const char* label);
75 bool CheckSizeLimit(uint32_t size, uint32_t limit, const char* label);
76 bool CheckIndex(uint32_t field, uint32_t limit, const char* label);
81 uint32_t ReadUnsignedLittleEndian(uint32_t size);
83 uint32_t* handler_offsets, uint32_t handlers_size);
84 bool CheckClassDataItemField(uint32_t idx,
85 uint32_t access_flags,
86 uint32_t class_access_flags,
89 bool CheckClassDataItemMethod(uint32_t idx,
90 uint32_t access_flags,
[all …]
/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 …]
Dquick_entrypoints_list.h42 V(ResolveTypeAndVerifyAccess, void*, uint32_t) \
43 V(ResolveType, void*, uint32_t) \
44 V(ResolveMethodHandle, void*, uint32_t) \
45 V(ResolveMethodType, void*, uint32_t) \
46 V(ResolveString, void*, uint32_t) \
48 V(Set8Instance, int, uint32_t, void*, int8_t) \
49 V(Set8Static, int, uint32_t, int8_t) \
50 V(Set16Instance, int, uint32_t, void*, int16_t) \
51 V(Set16Static, int, uint32_t, int16_t) \
52 V(Set32Instance, int, uint32_t, void*, int32_t) \
[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()
65 uint32_t displacement = CalculateMethodCallDisplacement(patch_offset, target_offset & ~1u); in PatchCall()
69 uint32_t signbit = (displacement >> 31) & 0x1; in PatchCall()
70 uint32_t i1 = (displacement >> 23) & 0x1; in PatchCall()
[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;
52 explicit ThunkKey(ThunkType type, uint32_t custom_value1 = 0u, uint32_t custom_value2 = 0u)
59 uint32_t GetCustomValue1() const { in GetCustomValue1()
63 uint32_t GetCustomValue2() const { in GetCustomValue2()
69 uint32_t custom_value1_;
70 uint32_t custom_value2_;
89 uint32_t ReserveSpaceInternal(uint32_t offset,
[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 MaxPositiveDisplacement(const ThunkKey& key) override;
51 uint32_t MaxNegativeDisplacement(const ThunkKey& key) override;
54 void SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value);
55 static uint32_t GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset);
[all …]
Drelative_patcher_thumb2_test.cc44 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/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/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 MaxPositiveDisplacement(const ThunkKey& key) 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;
75 inline uint32_t MaxExtraSpace(size_t num_adrp, size_t code_size) { in MaxExtraSpace()
79 uint32_t alignment_bytes = in MaxExtraSpace()
99 uint32_t Arm64RelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace()
125 uint32_t max_extra_space = MaxExtraSpace(num_adrp, code.size()); in ReserveSpace()
133 uint32_t quick_code_offset = compiled_method->AlignCode(offset + sizeof(OatQuickMethodHeader)); in ReserveSpace()
[all …]
/art/runtime/
Doat.h54 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 GetJniDlsymLookupOffset() const;
74 void SetJniDlsymLookupOffset(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/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 …]
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 …]
Dsdk_version.h25 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()
/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 PatchBakerReadBarrierBranch()
104 uint32_t executable_offset ATTRIBUTE_UNUSED) override { in GenerateThunkDebugInfo()
[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 …]
/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/mips64/
Drelative_patcher_mips64_test.cc31 static const uint32_t kLiteralOffsetHigh;
32 static const uint32_t kLiteralOffsetLow1;
33 static const uint32_t kLiteralOffsetLow2;
34 static const uint32_t kAnchorOffset;
37 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset()
43 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset);
44 void TestStringBssEntry(uint32_t bss_begin, uint32_t string_entry_offset);
45 void TestStringReference(uint32_t string_offset);
53 const uint32_t Mips64RelativePatcherTest::kLiteralOffsetHigh = 0; // At auipc.
54 const uint32_t Mips64RelativePatcherTest::kLiteralOffsetLow1 = 4; // At daddiu.
[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