Home
last modified time | relevance | path

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

12345678910>>...14

/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/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/runtime/mirror/
Dstring.h92 int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength()
97 int32_t GetCount() REQUIRES_SHARED(Locks::mutator_lock_) { in GetCount()
101 void SetCount(int32_t new_count) REQUIRES_SHARED(Locks::mutator_lock_) { in SetCount()
107 int32_t GetHashCode() REQUIRES_SHARED(Locks::mutator_lock_);
110 int32_t ComputeHashCode() REQUIRES_SHARED(Locks::mutator_lock_);
112 int32_t GetUtfLength() REQUIRES_SHARED(Locks::mutator_lock_);
114 uint16_t CharAt(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_);
125 int32_t byte_length,
127 int32_t offset,
128 int32_t high_byte,
[all …]
Dstring-alloc-inl.h40 explicit SetStringCountVisitor(int32_t count) : count_(count) { in SetStringCountVisitor()
52 const int32_t count_;
58 SetStringCountAndBytesVisitor(int32_t count, Handle<ByteArray> src_array, int32_t offset, in SetStringCountAndBytesVisitor()
59 int32_t high_byte) in SetStringCountAndBytesVisitor()
69 int32_t length = String::GetLengthFromCount(count_); in operator()
85 const int32_t count_;
87 const int32_t offset_;
88 const int32_t high_byte_;
94 SetStringCountAndValueVisitorFromCharArray(int32_t count, Handle<CharArray> src_array, in SetStringCountAndValueVisitorFromCharArray()
95 int32_t offset) : in SetStringCountAndValueVisitorFromCharArray()
[all …]
Dstring.cc37 int32_t String::FastIndexOf(int32_t ch, int32_t start) { in FastIndexOf()
38 int32_t count = GetLength(); in FastIndexOf()
52 int32_t hash_code = 0; in ComputeHashCode()
62 inline bool String::AllASCIIExcept(const uint16_t* chars, int32_t length, uint16_t non_ascii) { in AllASCIIExcept()
64 for (int32_t i = 0; i < length; ++i) { in AllASCIIExcept()
73 int32_t length = src->GetLength(); in DoReplace()
82 const int32_t length_with_flag = String::GetFlaggedCount(length, compressible); in DoReplace()
116 int32_t length_this = h_this->GetLength(); in DoConcat()
117 int32_t length_arg = h_arg->GetLength(); in DoConcat()
121 const int32_t length_with_flag = String::GetFlaggedCount(length_this + length_arg, compressible); in DoConcat()
[all …]
Darray.h49 int32_t component_count,
64 ALWAYS_INLINE int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength()
68 void SetLength(int32_t length) REQUIRES_SHARED(Locks::mutator_lock_) { in SetLength()
98 void* GetRawData(size_t component_size, int32_t index) in GetRawData()
105 void* GetRawData(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_) { in GetRawData()
111 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData()
117 const void* GetRawData(int32_t index) const { in GetRawData()
126 ALWAYS_INLINE bool CheckIsValidIndex(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_);
128 static ObjPtr<Array> CopyOf(Handle<Array> h_this, Thread* self, int32_t new_length)
136 void ThrowArrayIndexOutOfBoundsException(int32_t index)
[all …]
Dobject_array.h46 int32_t length,
52 int32_t length)
57 ALWAYS_INLINE ObjPtr<T> Get(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
65 ALWAYS_INLINE void Set(int32_t i, ObjPtr<T> object) REQUIRES_SHARED(Locks::mutator_lock_);
69 ALWAYS_INLINE void Set(int32_t i, ObjPtr<T> object) NO_THREAD_SAFETY_ANALYSIS;
77 ALWAYS_INLINE void SetWithoutChecks(int32_t i, ObjPtr<T> object) NO_THREAD_SAFETY_ANALYSIS;
82 ALWAYS_INLINE void SetWithoutChecksAndWriteBarrier(int32_t i, ObjPtr<T> object)
87 ALWAYS_INLINE ObjPtr<T> GetWithoutChecks(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
90 void AssignableMemmove(int32_t dst_pos,
92 int32_t src_pos,
[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()
70 inline int32_t String::GetHashCode() { in GetHashCode()
71 int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); in GetHashCode()
87 inline int32_t String::GetUtfLength() { in GetUtfLength()
Dmethod_type.cc63 const int32_t dst_ptypes_count = method_type->GetNumberOfPTypes() - 1; in CloneWithoutLeadingParameter()
68 for (int32_t i = 0; i < dst_ptypes_count; ++i) { in CloneWithoutLeadingParameter()
77 int32_t start_index) { in CollectTrailingArguments()
78 int32_t ptypes_length = method_type->GetNumberOfPTypes(); in CollectTrailingArguments()
91 for (int32_t i = 0; i < start_index; ++i) { in CollectTrailingArguments()
100 const int32_t p_types_length = p_types->GetLength(); in NumberOfVRegs()
105 for (int32_t i = 0; i < p_types_length; ++i) { in NumberOfVRegs()
116 const int32_t params_length = p_types->GetLength(); in IsExactMatch()
122 for (int32_t i = 0; i < params_length; ++i) { in IsExactMatch()
132 const int32_t params_length = p_types->GetLength(); in IsConvertible()
[all …]
Diftable.h30 ALWAYS_INLINE ObjPtr<Class> GetInterface(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
32 ALWAYS_INLINE void SetInterface(int32_t i, ObjPtr<Class> interface)
37 ObjPtr<PointerArray> GetMethodArrayOrNull(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
41 ObjPtr<PointerArray> GetMethodArray(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
45 size_t GetMethodArrayCount(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
47 void SetMethodArray(int32_t i, ObjPtr<PointerArray> arr) REQUIRES_SHARED(Locks::mutator_lock_);
/art/odrefresh/
Dodr_metrics_record.h34 int32_t trigger;
35 int32_t stage_reached;
36 int32_t status;
37 int32_t primary_bcp_compilation_seconds;
38 int32_t secondary_bcp_compilation_seconds;
39 int32_t system_server_compilation_seconds;
40 int32_t cache_space_free_start_mib;
41 int32_t cache_space_free_end_mib;
/art/libartpalette/include/palette/
Dpalette_method_list.h28 M(PaletteSchedSetPriority, int32_t tid, int32_t java_priority) \
29 M(PaletteSchedGetPriority, int32_t tid, /*out*/int32_t* java_priority) \
34 M(PaletteTraceIntegerValue, const char* name, int32_t value) \
57 int32_t wait_ms, \
59 int32_t line_number, \
62 int32_t owner_line_number, \
/art/tools/dmtracedump/
Dtracedump.cc40 int32_t versionNumber;
133 int32_t threadId;
141 int32_t numCalls;
148 int32_t numMethods;
150 int32_t numCalls[2]; /* 0=normal, 1=recursive */
155 int32_t numMethods;
157 int32_t numCalls[2]; /* 0=normal, 1=recursive */
169 int32_t lineNum;
176 int32_t numCalls[2]; /* 0=normal, 1=recursive */
177 int32_t index; /* used after sorting to number methods */
[all …]
Dcreatetesttrace.cc44 int32_t versionNumber = VERSION;
45 int32_t verbose = 0;
63 int32_t threadId;
79 int32_t indentLevel;
124 int32_t numRecords = 0; in parseInputFile()
125 int32_t maxThreadId = 1; in parseInputFile()
126 int32_t maxFrames = 0; in parseInputFile()
134 int32_t threadId = strtoul(cp, &cp, 0); in parseInputFile()
141 int32_t numThreads = maxThreadId + 1; in parseInputFile()
147 for (int32_t ii = 0; ii < numThreads; ++ii) { in parseInputFile()
[all …]
/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*);
126 extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit);
131 extern "C" void art_quick_throw_string_bounds(int32_t index, int32_t limit);
/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, kPageSize, MREMAP_MAYMOVE)); in BasicTest()
102 addr2 = reinterpret_cast<int32_t*>(mremap(addr, kPageSize, 2 * kPageSize, 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/libartpalette/system/
Dpalette_fake.cc30 static std::map<int32_t, int32_t> g_tid_priority_map;
32 palette_status_t PaletteSchedSetPriority(int32_t tid, int32_t priority) { in PaletteSchedSetPriority()
42 palette_status_t PaletteSchedGetPriority(int32_t tid, in PaletteSchedGetPriority()
43 /*out*/int32_t* priority) { in PaletteSchedGetPriority()
71 int32_t value ATTRIBUTE_UNUSED) { in PaletteTraceIntegerValue()
133 int32_t wait_ms ATTRIBUTE_UNUSED, in PaletteReportLockContention()
135 int32_t line_number ATTRIBUTE_UNUSED, in PaletteReportLockContention()
138 int32_t owner_line_number ATTRIBUTE_UNUSED, in PaletteReportLockContention()
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/compiler/utils/
Dswap_space_test.cc44 SwapVector<int32_t> v(alloc); in SwapTest()
46 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
51 SwapVector<int32_t> v2(alloc); in SwapTest()
53 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
58 SwapVector<int32_t> v3(alloc); in SwapTest()
60 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
66 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
/art/runtime/
Ddex_register_location.h31 enum class Kind : int32_t {
42 DexRegisterLocation(Kind kind, int32_t value) : kind_(kind), value_(value) {} in DexRegisterLocation()
51 int32_t GetValue() const { return value_; } in GetValue()
61 int32_t GetStackOffsetInBytes() const { in GetStackOffsetInBytes()
66 int32_t GetConstant() const { in GetConstant()
71 int32_t GetMachineRegister() const { in GetMachineRegister()
83 int32_t value_;
/art/compiler/utils/arm/
Dassembler_arm_vixl.h221 int32_t offset);
222 void StoreSToOffset(vixl32::SRegister source, vixl32::Register base, int32_t offset);
223 void StoreDToOffset(vixl32::DRegister source, vixl32::Register base, int32_t offset);
225 void LoadImmediate(vixl32::Register dest, int32_t value);
229 int32_t offset);
230 void LoadSFromOffset(vixl32::SRegister reg, vixl32::Register base, int32_t offset);
231 void LoadDFromOffset(vixl32::DRegister reg, vixl32::Register base, int32_t offset);
240 bool CanSplitLoadStoreOffset(int32_t allowed_offset_bits,
241 int32_t offset,
242 /*out*/ int32_t* add_to_base,
[all …]
/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.h41 static inline int32_t MemCmp16(const uint16_t* s0, const uint16_t* s1, size_t count) { in MemCmp16()
44 return static_cast<int32_t>(s0[i]) - static_cast<int32_t>(s1[i]); in MemCmp16()
50 extern "C" int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count);
60 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count);

12345678910>>...14