Home
last modified time | relevance | path

Searched refs:int32_t (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/art/odrefresh/
Dodr_metrics_record.h34 static constexpr int32_t kOdrefreshMetricsVersion = 4;
38 static constexpr int32_t kExecResultNotRun = 5;
49 int32_t status;
50 int32_t exit_code;
51 int32_t signal;
53 explicit Dex2OatExecResult(int32_t status, int32_t exit_code, int32_t signal) in Dex2OatExecResult()
62 int32_t odrefresh_metrics_version;
64 int32_t trigger;
65 int32_t stage_reached;
66 int32_t status;
[all …]
/art/runtime/interpreter/
Dsafe_math_test.cc28 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max(), 1), in TEST()
29 std::numeric_limits<int32_t>::min()); in TEST()
34 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max() - 1, 1), in TEST()
35 std::numeric_limits<int32_t>::max()); in TEST()
39 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::min() + 1, -1), in TEST()
40 std::numeric_limits<int32_t>::min()); in TEST()
44 EXPECT_EQ(SafeAdd(int32_t(-1), -1), -2); in TEST()
47 EXPECT_EQ(SafeAdd(int32_t(1), 1), 2); in TEST()
50 EXPECT_EQ(SafeAdd(int32_t(-1), 1), 0); in TEST()
53 EXPECT_EQ(SafeAdd(int32_t(1), -1), 0); in TEST()
[all …]
/art/runtime/mirror/
Dstring.h94 int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength()
99 int32_t GetCount() REQUIRES_SHARED(Locks::mutator_lock_) { in GetCount()
103 void SetCount(int32_t new_count) REQUIRES_SHARED(Locks::mutator_lock_) { in SetCount()
109 int32_t GetStoredHashCode() REQUIRES_SHARED(Locks::mutator_lock_) { in GetStoredHashCode()
113 int32_t GetHashCode() REQUIRES_SHARED(Locks::mutator_lock_);
116 int32_t ComputeHashCode() REQUIRES_SHARED(Locks::mutator_lock_);
118 int32_t GetModifiedUtf8Length() REQUIRES_SHARED(Locks::mutator_lock_);
120 uint16_t CharAt(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_);
131 int32_t utf16_length_with_flag,
138 int32_t byte_length,
[all …]
Dstring.cc38 int32_t String::FastIndexOf(int32_t ch, int32_t start) { in FastIndexOf()
39 int32_t count = GetLength(); in FastIndexOf()
52 int32_t String::LastIndexOf(int32_t ch) { in LastIndexOf()
53 int32_t count = GetLength(); in LastIndexOf()
64 int32_t String::ComputeAndSetHashCode() { in ComputeAndSetHashCode()
65 int32_t new_hash_code = ComputeHashCode(); in ComputeAndSetHashCode()
70 inline bool String::AllASCIIExcept(const uint16_t* chars, int32_t length, uint16_t non_ascii) { in AllASCIIExcept()
72 for (int32_t i = 0; i < length; ++i) { in AllASCIIExcept()
81 int32_t length = src->GetLength(); in DoReplace()
90 const int32_t length_with_flag = String::GetFlaggedCount(length, compressible); in DoReplace()
[all …]
Dstring-inl.h45 inline uint16_t String::CharAt(int32_t index) { in CharAt()
46 int32_t count = GetLength(); in CharAt()
59 int32_t String::FastIndexOf(MemoryType* chars, int32_t ch, int32_t start) { in FastIndexOf()
71 int32_t String::LastIndexOf(MemoryType* chars, int32_t ch, int32_t from_index) { in LastIndexOf()
84 inline int32_t String::ComputeHashCode() { in ComputeHashCode()
88 return static_cast<int32_t>(hash); in ComputeHashCode()
91 inline int32_t String::GetHashCode() { in GetHashCode()
92 int32_t result = GetStoredHashCode(); in GetHashCode()
100 inline int32_t String::GetModifiedUtf8Length() { in GetModifiedUtf8Length()
Dstring-alloc-inl.h41 explicit SetStringCountVisitor(int32_t count) : count_(count) { in SetStringCountVisitor()
53 const int32_t count_;
59 SetStringCountAndBytesVisitor(int32_t count, Handle<ByteArray> src_array, int32_t offset, in SetStringCountAndBytesVisitor()
60 int32_t high_byte) in SetStringCountAndBytesVisitor()
70 int32_t length = String::GetLengthFromCount(count_); in operator()
86 const int32_t count_;
88 const int32_t offset_;
89 const int32_t high_byte_;
95 SetStringCountAndUtf16BytesVisitor(int32_t count, Handle<ByteArray> src_array, int32_t offset) in SetStringCountAndUtf16BytesVisitor()
122 const int32_t count_;
[all …]
Darray.h50 int32_t component_count,
67 ALWAYS_INLINE int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength()
71 void SetLength(int32_t length) REQUIRES_SHARED(Locks::mutator_lock_) { in SetLength()
101 void* GetRawData(size_t component_size, int32_t index) in GetRawData()
108 void* GetRawData(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_) { in GetRawData()
114 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData()
120 const void* GetRawData(int32_t index) const { in GetRawData()
129 ALWAYS_INLINE bool CheckIsValidIndex(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_);
131 EXPORT static ObjPtr<Array> CopyOf(Handle<Array> h_this, Thread* self, int32_t new_length)
139 EXPORT void ThrowArrayIndexOutOfBoundsException(int32_t index)
[all …]
Dobject_array.h47 int32_t length,
53 int32_t length)
58 ALWAYS_INLINE ObjPtr<T> Get(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
66 ALWAYS_INLINE void Set(int32_t i, ObjPtr<T> object) REQUIRES_SHARED(Locks::mutator_lock_);
70 ALWAYS_INLINE void Set(int32_t i, ObjPtr<T> object) NO_THREAD_SAFETY_ANALYSIS;
78 ALWAYS_INLINE void SetWithoutChecks(int32_t i, ObjPtr<T> object) NO_THREAD_SAFETY_ANALYSIS;
83 ALWAYS_INLINE void SetWithoutChecksAndWriteBarrier(int32_t i, ObjPtr<T> object)
88 ALWAYS_INLINE ObjPtr<T> GetWithoutChecks(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
91 void AssignableMemmove(int32_t dst_pos,
93 int32_t src_pos,
[all …]
Dstack_frame_info.h41 int32_t line_number,
42 int32_t dex_pc)
52 int32_t bci_;
53 int32_t line_number_;
61 int32_t line_number,
62 int32_t bci)
Diftable.h31 ALWAYS_INLINE ObjPtr<Class> GetInterface(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
33 ALWAYS_INLINE void SetInterface(int32_t i, ObjPtr<Class> interface)
38 ObjPtr<PointerArray> GetMethodArrayOrNull(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
42 ObjPtr<PointerArray> GetMethodArray(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
46 size_t GetMethodArrayCount(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
48 void SetMethodArray(int32_t i, ObjPtr<PointerArray> arr) REQUIRES_SHARED(Locks::mutator_lock_);
/art/libartbase/base/
Dbit_utils_test.cc178 static_cast<int64_t>(std::numeric_limits<int32_t>::min()) - 1;
180 static_cast<int64_t>(std::numeric_limits<int32_t>::max()) + 1;
185 EXPECT_FALSE(IsInt<int32_t>(1, -2)); in TEST()
186 EXPECT_TRUE(IsInt<int32_t>(1, -1)); in TEST()
187 EXPECT_TRUE(IsInt<int32_t>(1, 0)); in TEST()
188 EXPECT_FALSE(IsInt<int32_t>(1, 1)); in TEST()
189 EXPECT_FALSE(IsInt<int32_t>(4, -9)); in TEST()
190 EXPECT_TRUE(IsInt<int32_t>(4, -8)); in TEST()
191 EXPECT_TRUE(IsInt<int32_t>(4, 7)); in TEST()
192 EXPECT_FALSE(IsInt<int32_t>(4, 8)); in TEST()
[all …]
/art/libartpalette/include/palette/
Dpalette_method_list.h29 M(PaletteSchedSetPriority, int32_t tid, int32_t java_priority) \
30 M(PaletteSchedGetPriority, int32_t tid, /*out*/ int32_t* java_priority) \
35 M(PaletteTraceIntegerValue, const char* name, int32_t value) \
55 int32_t wait_ms, \
57 int32_t line_number, \
60 int32_t owner_line_number, \
78 M(PaletteSetTaskProfiles, int32_t tid, const char* const profiles[], size_t profiles_len) \
/art/runtime/entrypoints/quick/
Dquick_entrypoints_list.h23 V(AllocArrayResolved, void*, mirror::Class*, int32_t) \
24 V(AllocArrayResolved8, void*, mirror::Class*, int32_t) \
25 V(AllocArrayResolved16, void*, mirror::Class*, int32_t) \
26 V(AllocArrayResolved32, void*, mirror::Class*, int32_t) \
27 V(AllocArrayResolved64, void*, mirror::Class*, int32_t) \
34 V(AllocStringFromBytes, void*, void*, int32_t, int32_t, int32_t) \
35 V(AllocStringFromChars, void*, int32_t, int32_t, void*) \
52 V(Set32Instance, int, uint32_t, void*, int32_t) \
53 V(Set32Static, int, uint32_t, int32_t) \
73 V(AputObject, void, mirror::Array*, int32_t, mirror::Object*) \
[all …]
Dquick_alloc_entrypoints.cc97 mirror::Class* klass, int32_t component_count, Thread* self) \
104 mirror::ByteArray* byte_array, int32_t high, int32_t offset, int32_t byte_count, \
114 int32_t offset, int32_t char_count, mirror::CharArray* char_array, Thread* self) \
142 extern "C" void* art_quick_alloc_array_resolved##suffix(mirror::Class* klass, int32_t); \
143 extern "C" void* art_quick_alloc_array_resolved8##suffix(mirror::Class* klass, int32_t); \
144 extern "C" void* art_quick_alloc_array_resolved16##suffix(mirror::Class* klass, int32_t); \
145 extern "C" void* art_quick_alloc_array_resolved32##suffix(mirror::Class* klass, int32_t); \
146 extern "C" void* art_quick_alloc_array_resolved64##suffix(mirror::Class* klass, int32_t); \
151 extern "C" void* art_quick_alloc_string_from_bytes##suffix(void*, int32_t, int32_t, int32_t); \
152 extern "C" void* art_quick_alloc_string_from_chars##suffix(int32_t, int32_t, void*); \
[all …]
Dquick_default_externs.h49 extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t);
50 extern "C" int art_quick_set32_static(uint32_t, int32_t);
71 extern "C" void art_quick_aput_obj_with_null_and_bound_check(art::mirror::Array*, int32_t,
73 extern "C" void art_quick_aput_obj_with_bound_check(art::mirror::Array*, int32_t,
75 extern "C" void art_quick_aput_obj(art::mirror::Array*, int32_t, art::mirror::Object*);
102 extern "C" int32_t art_quick_indexof(void*, uint32_t, uint32_t);
103 extern "C" int32_t art_quick_string_compareto(void*, void*);
142 extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit);
147 extern "C" void art_quick_throw_string_bounds(int32_t index, int32_t limit);
/art/libartpalette/system/
Dpalette_fake.cc28 static std::map<int32_t, int32_t> g_tid_priority_map;
33 palette_status_t PaletteSchedSetPriority(int32_t tid, int32_t priority) { in PaletteSchedSetPriority()
43 palette_status_t PaletteSchedGetPriority(int32_t tid, in PaletteSchedGetPriority()
44 /*out*/int32_t* priority) { in PaletteSchedGetPriority()
70 [[maybe_unused]] int32_t value) { in PaletteTraceIntegerValue()
132 [[maybe_unused]] int32_t wait_ms, in PaletteReportLockContention()
134 [[maybe_unused]] int32_t line_number, in PaletteReportLockContention()
137 [[maybe_unused]] int32_t owner_line_number, in PaletteReportLockContention()
145 palette_status_t PaletteSetTaskProfiles([[maybe_unused]] int32_t tid, in PaletteSetTaskProfiles()
Dpalette_system.h26 static constexpr int32_t kNormalManagedThreadPriority = 5;
27 static constexpr int32_t kMinManagedThreadPriority = 1;
28 static constexpr int32_t kMaxManagedThreadPriority = 10;
29 static constexpr int32_t kNumManagedThreadPriorities =
/art/runtime/jit/
Djit_memory_region_test.cc66 int32_t* addr = reinterpret_cast<int32_t*>( in BasicTest()
84 int32_t* addr2 = reinterpret_cast<int32_t*>( in BasicTest()
95 addr2 = reinterpret_cast<int32_t*>(mremap(addr, 0, page_size, MREMAP_MAYMOVE)); in BasicTest()
102 addr2 = reinterpret_cast<int32_t*>(mremap(addr, page_size, 2 * page_size, MREMAP_MAYMOVE)); in BasicTest()
115 int32_t* addr = nullptr; in TestUnmapWritableAfterFork()
116 int32_t* addr2 = nullptr; in TestUnmapWritableAfterFork()
122 addr = reinterpret_cast<int32_t*>( in TestUnmapWritableAfterFork()
132 addr2 = reinterpret_cast<int32_t*>( in TestUnmapWritableAfterFork()
146 std::atomic<int32_t>* shared = reinterpret_cast<std::atomic<int32_t>*>( in TestUnmapWritableAfterFork()
150 const int32_t parent_value = 66; in TestUnmapWritableAfterFork()
[all …]
/art/dex2oat/utils/
Dswap_space_test.cc43 SwapVector<int32_t> v(alloc); in SwapTest()
45 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
50 SwapVector<int32_t> v2(alloc); in SwapTest()
52 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
57 SwapVector<int32_t> v3(alloc); in SwapTest()
59 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
65 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
/art/runtime/verifier/
Dreg_type_cache.h86 const ConstantType& FromCat1Const(int32_t value, bool precise)
88 const ConstantType& FromCat2ConstLo(int32_t value, bool precise)
90 const ConstantType& FromCat2ConstHi(int32_t value, bool precise)
160 static constexpr int32_t kMinSmallConstant = -1;
161 static constexpr int32_t kMaxSmallConstant = 4;
162 static constexpr int32_t kNumSmallConstants = kMaxSmallConstant - kMinSmallConstant + 1;
164 static constexpr int32_t kBooleanCacheId = kNumSmallConstants;
165 static constexpr int32_t kByteCacheId = kNumSmallConstants + 1;
166 static constexpr int32_t kShortCacheId = kNumSmallConstants + 2;
167 static constexpr int32_t kCharCacheId = kNumSmallConstants + 3;
[all …]
/art/runtime/
Ddex_register_location.h32 enum class Kind : int32_t {
43 DexRegisterLocation(Kind kind, int32_t value) : kind_(kind), value_(value) {} in DexRegisterLocation()
52 int32_t GetValue() const { return value_; } in GetValue()
62 int32_t GetStackOffsetInBytes() const { in GetStackOffsetInBytes()
67 int32_t GetConstant() const { in GetConstant()
72 int32_t GetMachineRegister() const { in GetMachineRegister()
84 int32_t value_;
/art/runtime/arch/
Dmemcmp16.cc22 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count);
23 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count) { in memcmp16_generic_static()
26 return static_cast<int32_t>(s0[i]) - static_cast<int32_t>(s1[i]); in memcmp16_generic_static()
36 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count) { in MemCmp16Testing()
Dmemcmp16.h43 static inline int32_t MemCmp16(const uint16_t* s0, const uint16_t* s1, size_t count) { in MemCmp16()
46 return static_cast<int32_t>(s0[i]) - static_cast<int32_t>(s1[i]); in MemCmp16()
53 extern "C" int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count);
63 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count);
/art/compiler/utils/arm/
Dassembler_arm_vixl.h262 int32_t offset);
263 void StoreSToOffset(vixl32::SRegister source, vixl32::Register base, int32_t offset);
264 void StoreDToOffset(vixl32::DRegister source, vixl32::Register base, int32_t offset);
266 void LoadImmediate(vixl32::Register dest, int32_t value);
270 int32_t offset);
271 void LoadSFromOffset(vixl32::SRegister reg, vixl32::Register base, int32_t offset);
272 void LoadDFromOffset(vixl32::DRegister reg, vixl32::Register base, int32_t offset);
281 bool CanSplitLoadStoreOffset(int32_t allowed_offset_bits,
282 int32_t offset,
283 /*out*/ int32_t* add_to_base,
[all …]
/art/runtime/entrypoints/
Dmath_entrypoints.cc43 extern "C" int32_t art_d2i(double d) { in art_d2i()
44 return art_float_to_integral<int32_t, double>(d); in art_d2i()
47 extern "C" int32_t art_f2i(float f) { in art_f2i()
48 return art_float_to_integral<int32_t, float>(f); in art_f2i()

12345678910>>...14