Home
last modified time | relevance | path

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

1234567891011

/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/base/
Dbit_utils_test.cc151 static_cast<int64_t>(std::numeric_limits<int32_t>::min()) - 1;
153 static_cast<int64_t>(std::numeric_limits<int32_t>::max()) + 1;
158 EXPECT_FALSE(IsInt<int32_t>(1, -2)); in TEST()
159 EXPECT_TRUE(IsInt<int32_t>(1, -1)); in TEST()
160 EXPECT_TRUE(IsInt<int32_t>(1, 0)); in TEST()
161 EXPECT_FALSE(IsInt<int32_t>(1, 1)); in TEST()
162 EXPECT_FALSE(IsInt<int32_t>(4, -9)); in TEST()
163 EXPECT_TRUE(IsInt<int32_t>(4, -8)); in TEST()
164 EXPECT_TRUE(IsInt<int32_t>(4, 7)); in TEST()
165 EXPECT_FALSE(IsInt<int32_t>(4, 8)); in TEST()
[all …]
/art/runtime/mirror/
Dobject_array.h33 static ObjectArray<T>* Alloc(Thread* self, Class* object_array_class, int32_t length,
37 static ObjectArray<T>* Alloc(Thread* self, Class* object_array_class, int32_t length)
42 ALWAYS_INLINE T* Get(int32_t i) SHARED_REQUIRES(Locks::mutator_lock_);
50 ALWAYS_INLINE void Set(int32_t i, T* object) SHARED_REQUIRES(Locks::mutator_lock_);
54 ALWAYS_INLINE void Set(int32_t i, T* object) NO_THREAD_SAFETY_ANALYSIS;
62 ALWAYS_INLINE void SetWithoutChecks(int32_t i, T* object) NO_THREAD_SAFETY_ANALYSIS;
67 ALWAYS_INLINE void SetWithoutChecksAndWriteBarrier(int32_t i, T* object)
70 ALWAYS_INLINE T* GetWithoutChecks(int32_t i) SHARED_REQUIRES(Locks::mutator_lock_);
73 void AssignableMemmove(int32_t dst_pos, ObjectArray<T>* src, int32_t src_pos,
74 int32_t count) SHARED_REQUIRES(Locks::mutator_lock_);
[all …]
Dstring.h61 int32_t GetLength() SHARED_REQUIRES(Locks::mutator_lock_) { in GetLength()
65 void SetCount(int32_t new_count) SHARED_REQUIRES(Locks::mutator_lock_) { in SetCount()
72 int32_t GetHashCode() SHARED_REQUIRES(Locks::mutator_lock_);
75 int32_t ComputeHashCode() SHARED_REQUIRES(Locks::mutator_lock_);
77 int32_t GetUtfLength() SHARED_REQUIRES(Locks::mutator_lock_);
79 uint16_t CharAt(int32_t index) SHARED_REQUIRES(Locks::mutator_lock_);
81 void SetCharAt(int32_t index, uint16_t c) SHARED_REQUIRES(Locks::mutator_lock_);
86 ALWAYS_INLINE static String* Alloc(Thread* self, int32_t utf16_length,
92 ALWAYS_INLINE static String* AllocFromByteArray(Thread* self, int32_t byte_length,
93 Handle<ByteArray> array, int32_t offset,
[all …]
Dstring.cc37 int32_t String::FastIndexOf(int32_t ch, int32_t start) { in FastIndexOf()
38 int32_t count = GetLength(); in FastIndexOf()
68 const int32_t hash_code = ComputeUtf16Hash(GetValue(), GetLength()); in ComputeHashCode()
73 int32_t String::GetUtfLength() { in GetUtfLength()
77 void String::SetCharAt(int32_t index, uint16_t c) { in SetCharAt()
83 int32_t length = string->GetLength(); in AllocFromStrings()
84 int32_t length2 = string2->GetLength(); in AllocFromStrings()
97 String* String::AllocFromUtf16(Thread* self, int32_t utf16_length, const uint16_t* utf16_data_in) { in AllocFromUtf16()
117 String* String::AllocFromModifiedUtf8(Thread* self, int32_t utf16_length, const char* utf8_data_in)… in AllocFromModifiedUtf8()
121 String* String::AllocFromModifiedUtf8(Thread* self, int32_t utf16_length, in AllocFromModifiedUtf8()
[all …]
Dstring-inl.h43 explicit SetStringCountVisitor(int32_t count) : count_(count) { in SetStringCountVisitor()
54 const int32_t count_;
60 SetStringCountAndBytesVisitor(int32_t count, Handle<ByteArray> src_array, int32_t offset, in SetStringCountAndBytesVisitor()
61 int32_t high_byte) in SetStringCountAndBytesVisitor()
78 const int32_t count_;
80 const int32_t offset_;
81 const int32_t high_byte_;
87 SetStringCountAndValueVisitorFromCharArray(int32_t count, Handle<CharArray> src_array, in SetStringCountAndValueVisitorFromCharArray()
88 int32_t offset) : in SetStringCountAndValueVisitorFromCharArray()
102 const int32_t count_;
[all …]
Darray.h40 ALWAYS_INLINE static Array* Alloc(Thread* self, Class* array_class, int32_t component_count,
52 ALWAYS_INLINE int32_t GetLength() SHARED_REQUIRES(Locks::mutator_lock_) { in GetLength()
56 void SetLength(int32_t length) SHARED_REQUIRES(Locks::mutator_lock_) { in SetLength()
69 void* GetRawData(size_t component_size, int32_t index) in GetRawData()
76 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData()
85 ALWAYS_INLINE bool CheckIsValidIndex(int32_t index) SHARED_REQUIRES(Locks::mutator_lock_);
87 Array* CopyOf(Thread* self, int32_t new_length) SHARED_REQUIRES(Locks::mutator_lock_)
95 void ThrowArrayIndexOutOfBoundsException(int32_t index)
99 int32_t length_;
122 T Get(int32_t i) ALWAYS_INLINE SHARED_REQUIRES(Locks::mutator_lock_);
[all …]
Dobject_array-inl.h38 int32_t length, gc::AllocatorType allocator_type) { in Alloc()
53 int32_t length) { in Alloc()
59 inline T* ObjectArray<T>::Get(int32_t i) { in Get()
80 inline void ObjectArray<T>::Set(int32_t i, T* object) { in Set()
90 inline void ObjectArray<T>::Set(int32_t i, T* object) { in Set()
100 inline void ObjectArray<T>::SetWithoutChecks(int32_t i, T* object) { in SetWithoutChecks()
108 inline void ObjectArray<T>::SetWithoutChecksAndWriteBarrier(int32_t i, T* object) { in SetWithoutChecksAndWriteBarrier()
117 inline T* ObjectArray<T>::GetWithoutChecks(int32_t i) { in GetWithoutChecks()
123 inline void ObjectArray<T>::AssignableMemmove(int32_t dst_pos, ObjectArray<T>* src, in AssignableMemmove()
124 int32_t src_pos, int32_t count) { in AssignableMemmove()
[all …]
Darray-inl.h44 int32_t component_count = in SizeOf()
60 inline bool Array::CheckIsValidIndex(int32_t index) { in CheckIsValidIndex()
69 static inline size_t ComputeArraySize(int32_t component_count, size_t component_size_shift) { in ComputeArraySize()
100 explicit SetLengthVisitor(int32_t length) : length_(length) { in SetLengthVisitor()
112 const int32_t length_;
121 SetLengthToUsableSizeVisitor(int32_t min_length, size_t header_size, in SetLengthToUsableSizeVisitor()
132 int32_t length = (usable_size - header_size_) >> component_size_shift_; in operator()
144 const int32_t minimum_length_;
152 inline Array* Array::Alloc(Thread* self, Class* array_class, int32_t component_count, in Alloc()
213 inline T PrimitiveArray<T>::Get(int32_t i) { in Get()
[all …]
/art/runtime/entrypoints/quick/
Dquick_entrypoints_list.h23 V(AllocArray, void*, uint32_t, int32_t, ArtMethod*) \
24 V(AllocArrayResolved, void*, mirror::Class*, int32_t, ArtMethod*) \
25 V(AllocArrayWithAccessCheck, void*, uint32_t, int32_t, ArtMethod*) \
30 V(CheckAndAllocArray, void*, uint32_t, int32_t, ArtMethod*) \
31 V(CheckAndAllocArrayWithAccessCheck, void*, uint32_t, int32_t, ArtMethod*) \
32 V(AllocStringFromBytes, void*, void*, int32_t, int32_t, int32_t) \
33 V(AllocStringFromChars, void*, int32_t, int32_t, void*) \
48 V(Set32Instance, int, uint32_t, void*, int32_t) \
49 V(Set32Static, int, uint32_t, int32_t) \
62 V(Get32Instance, int32_t, uint32_t, void*) \
[all …]
Dquick_default_externs.h47 extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t);
48 extern "C" int art_quick_set32_static(uint32_t, int32_t);
61 extern "C" int32_t art_quick_get32_instance(uint32_t, void*);
62 extern "C" int32_t art_quick_get32_static(uint32_t);
69 extern "C" void art_quick_aput_obj_with_null_and_bound_check(art::mirror::Array*, int32_t,
71 extern "C" void art_quick_aput_obj_with_bound_check(art::mirror::Array*, int32_t,
73 extern "C" void art_quick_aput_obj(art::mirror::Array*, int32_t, art::mirror::Object*);
100 extern "C" int32_t art_quick_indexof(void*, uint32_t, uint32_t);
101 extern "C" int32_t art_quick_string_compareto(void*, void*);
119 extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit);
[all …]
Dquick_alloc_entrypoints.cc115 uint32_t type_idx, int32_t component_count, ArtMethod* method, Thread* self) \
122 mirror::Class* klass, int32_t component_count, ArtMethod* method, Thread* self) \
129 uint32_t type_idx, int32_t component_count, ArtMethod* method, Thread* self) \
136 uint32_t type_idx, int32_t component_count, ArtMethod* method, Thread* self) \
146 uint32_t type_idx, int32_t component_count, ArtMethod* method, Thread* self) \
156 mirror::ByteArray* byte_array, int32_t high, int32_t offset, int32_t byte_count, \
166 int32_t offset, int32_t char_count, mirror::CharArray* char_array, Thread* self) \
194 extern "C" void* art_quick_alloc_array##suffix(uint32_t, int32_t, ArtMethod* ref); \
195 extern "C" void* art_quick_alloc_array_resolved##suffix(mirror::Class* klass, int32_t, ArtMethod* r…
196 extern "C" void* art_quick_alloc_array_with_access_check##suffix(uint32_t, int32_t, ArtMethod* ref)…
[all …]
/art/compiler/utils/arm/
Dassembler_arm32.cc205 int32_t encoding = B26 | B25 | B24 | B20 | in sdiv()
207 (static_cast<int32_t>(cond) << kConditionShift) | in sdiv()
208 (static_cast<int32_t>(rn) << 0) | in sdiv()
209 (static_cast<int32_t>(rd) << 16) | in sdiv()
210 (static_cast<int32_t>(rm) << 8) | in sdiv()
221 int32_t encoding = B26 | B25 | B24 | B21 | B20 | in udiv()
223 (static_cast<int32_t>(cond) << kConditionShift) | in udiv()
224 (static_cast<int32_t>(rn) << 0) | in udiv()
225 (static_cast<int32_t>(rd) << 16) | in udiv()
226 (static_cast<int32_t>(rm) << 8) | in udiv()
[all …]
Dassembler_thumb2.cc279 int32_t anchor_position = table.GetAnchorLabel()->Position() + 4; in EmitJumpTables()
286 int32_t offset = target->Position() - anchor_position; in EmitJumpTables()
287 buffer_.Emit<int32_t>(offset); in EmitJumpTables()
325 inline int16_t Thumb2Assembler::BEncoding16(int32_t offset, Condition cond) { in BEncoding16()
330 encoding |= B12 | (static_cast<int32_t>(cond) << 8) | ((offset >> 1) & 0xff); in BEncoding16()
338 inline int32_t Thumb2Assembler::BEncoding32(int32_t offset, Condition cond) { in BEncoding32()
340 int32_t s = (offset >> 31) & 1; // Sign bit. in BEncoding32()
341 int32_t encoding = B31 | B30 | B29 | B28 | B15 | in BEncoding32()
347 encoding |= (static_cast<int32_t>(cond) << 22) | ((offset & 0x3f000) << (16 - 12)) | in BEncoding32()
352 int32_t j1 = ((offset >> 23) ^ s ^ 1) & 1; // Calculate J1 from I1 extracted from bit 23. in BEncoding32()
[all …]
Dassembler_thumb2.h312 void AddConstant(Register rd, Register rn, int32_t value,
315 void CmpConstant(Register rn, int32_t value, Condition cond = AL) OVERRIDE;
318 void LoadImmediate(Register rd, int32_t value, Condition cond = AL) OVERRIDE;
323 int32_t offset,
328 int32_t offset,
332 int32_t offset,
336 int32_t offset,
340 int32_t offset,
344 int32_t offset,
362 void Emit32(int32_t value); // Emit a 32 bit instruction in thumb format.
[all …]
/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/compiler/utils/
Dswap_space_test.cc42 SwapVector<int32_t> v(alloc); in SwapTest()
44 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
49 SwapVector<int32_t> v2(alloc); in SwapTest()
51 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
56 SwapVector<int32_t> v3(alloc); in SwapTest()
58 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
64 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
/art/runtime/
Dasm_support.h170 static_cast<int32_t>(art::ShadowFrame::LinkOffset())) in CheckAsmSupportOffsetsAndSizes()
173 static_cast<int32_t>(art::ShadowFrame::MethodOffset())) in CheckAsmSupportOffsetsAndSizes()
176 static_cast<int32_t>(art::ShadowFrame::ResultRegisterOffset())) in CheckAsmSupportOffsetsAndSizes()
179 static_cast<int32_t>(art::ShadowFrame::DexPCPtrOffset())) in CheckAsmSupportOffsetsAndSizes()
182 static_cast<int32_t>(art::ShadowFrame::CodeItemOffset())) in CheckAsmSupportOffsetsAndSizes()
185 static_cast<int32_t>(art::ShadowFrame::LockCountDataOffset())) in CheckAsmSupportOffsetsAndSizes()
188 static_cast<int32_t>(art::ShadowFrame::NumberOfVRegsOffset())) in CheckAsmSupportOffsetsAndSizes()
191 static_cast<int32_t>(art::ShadowFrame::DexPCOffset())) in CheckAsmSupportOffsetsAndSizes()
194 static_cast<int32_t>(art::ShadowFrame::CachedHotnessCountdownOffset())) in CheckAsmSupportOffsetsAndSizes()
197 static_cast<int32_t>(art::ShadowFrame::HotnessCountdownOffset())) in CheckAsmSupportOffsetsAndSizes()
[all …]
Dbarrier_test.cc55 static int32_t num_threads;
58 int32_t BarrierTest::num_threads = 4;
68 for (int32_t i = 0; i < num_threads; ++i) { in TEST_F()
117 const int32_t num_tasks = num_threads * 4; in TEST_F()
118 const int32_t num_sub_tasks = 128; in TEST_F()
119 for (int32_t i = 0; i < num_tasks; ++i) { in TEST_F()
123 const int32_t expected_total_tasks = num_sub_tasks * num_tasks; in TEST_F()
/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);
/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()
/art/compiler/optimizing/
Dnodes_x86.h81 HX86PackedSwitch(int32_t start_value, in HX86PackedSwitch()
82 int32_t num_entries, in HX86PackedSwitch()
95 int32_t GetStartValue() const { return start_value_; } in GetStartValue()
97 int32_t GetNumEntries() const { return num_entries_; } in GetNumEntries()
111 const int32_t start_value_;
112 const int32_t num_entries_;
/art/runtime/arch/mips64/
Dentrypoints_init_mips64.cc34 extern int32_t CmpgDouble(double a, double b);
35 extern int32_t CmplDouble(double a, double b);
36 extern int32_t CmpgFloat(float a, float b);
37 extern int32_t CmplFloat(float a, float b);
43 extern "C" int32_t __fixsfsi(float op1); // FLOAT_TO_INT
44 extern "C" int32_t __fixdfsi(double op1); // DOUBLE_TO_INT

1234567891011