/art/runtime/interpreter/ |
D | safe_math_test.cc | 28 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/generated/ |
D | asm_support_gen.h | 42 DEFINE_CHECK_EQ(static_cast<int32_t>(THREAD_FLAGS_OFFSET), (static_cast<int32_t>(art::Thread::Threa… 44 DEFINE_CHECK_EQ(static_cast<int32_t>(THREAD_ID_OFFSET), (static_cast<int32_t>(art::Thread::ThinLock… 46 DEFINE_CHECK_EQ(static_cast<int32_t>(THREAD_IS_GC_MARKING_OFFSET), (static_cast<int32_t>(art::Threa… 48 DEFINE_CHECK_EQ(static_cast<int32_t>(THREAD_CARD_TABLE_OFFSET), (static_cast<int32_t>(art::Thread::… 50 DEFINE_CHECK_EQ(static_cast<int32_t>(MIRROR_CLASS_DEX_CACHE_OFFSET), (static_cast<int32_t>(art::mir… 52 DEFINE_CHECK_EQ(static_cast<int32_t>(MIRROR_DEX_CACHE_RESOLVED_METHODS_OFFSET), (static_cast<int32_… 54 DEFINE_CHECK_EQ(static_cast<int32_t>(MIRROR_OBJECT_CLASS_OFFSET), (static_cast<int32_t>(art::mirror… 56 DEFINE_CHECK_EQ(static_cast<int32_t>(MIRROR_OBJECT_LOCK_WORD_OFFSET), (static_cast<int32_t>(art::mi… 64 DEFINE_CHECK_EQ(static_cast<int32_t>(ART_METHOD_JNI_OFFSET_32), (static_cast<int32_t>(art::ArtMetho… 66 DEFINE_CHECK_EQ(static_cast<int32_t>(ART_METHOD_JNI_OFFSET_64), (static_cast<int32_t>(art::ArtMetho… [all …]
|
/art/runtime/mirror/ |
D | string.h | 72 int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength() 77 int32_t GetCount() REQUIRES_SHARED(Locks::mutator_lock_) { in GetCount() 81 void SetCount(int32_t new_count) REQUIRES_SHARED(Locks::mutator_lock_) { in SetCount() 87 int32_t GetHashCode() REQUIRES_SHARED(Locks::mutator_lock_); 90 int32_t ComputeHashCode() REQUIRES_SHARED(Locks::mutator_lock_); 92 int32_t GetUtfLength() REQUIRES_SHARED(Locks::mutator_lock_); 94 uint16_t CharAt(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_); 104 ALWAYS_INLINE static String* AllocFromByteArray(Thread* self, int32_t byte_length, 105 Handle<ByteArray> array, int32_t offset, 106 int32_t high_byte, [all …]
|
D | object_array.h | 36 int32_t length, 42 int32_t length) 47 ALWAYS_INLINE T* Get(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_); 55 ALWAYS_INLINE void Set(int32_t i, ObjPtr<T> object) REQUIRES_SHARED(Locks::mutator_lock_); 59 ALWAYS_INLINE void Set(int32_t i, ObjPtr<T> object) NO_THREAD_SAFETY_ANALYSIS; 67 ALWAYS_INLINE void SetWithoutChecks(int32_t i, ObjPtr<T> object) NO_THREAD_SAFETY_ANALYSIS; 72 ALWAYS_INLINE void SetWithoutChecksAndWriteBarrier(int32_t i, ObjPtr<T> object) 77 ALWAYS_INLINE T* GetWithoutChecks(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_); 80 void AssignableMemmove(int32_t dst_pos, 82 int32_t src_pos, [all …]
|
D | string.cc | 41 int32_t String::FastIndexOf(int32_t ch, int32_t start) { in FastIndexOf() 42 int32_t count = GetLength(); in FastIndexOf() 68 int32_t hash_code = 0; in ComputeHashCode() 78 int32_t String::GetUtfLength() { in GetUtfLength() 86 inline bool String::AllASCIIExcept(const uint16_t* chars, int32_t length, uint16_t non_ascii) { in AllASCIIExcept() 88 for (int32_t i = 0; i < length; ++i) { in AllASCIIExcept() 97 int32_t length = src->GetLength(); in DoReplace() 106 const int32_t length_with_flag = String::GetFlaggedCount(length, compressible); in DoReplace() 139 int32_t length = string->GetLength(); in AllocFromStrings() 140 int32_t length2 = string2->GetLength(); in AllocFromStrings() [all …]
|
D | string-inl.h | 54 explicit SetStringCountVisitor(int32_t count) : count_(count) { in SetStringCountVisitor() 66 const int32_t count_; 72 SetStringCountAndBytesVisitor(int32_t count, Handle<ByteArray> src_array, int32_t offset, in SetStringCountAndBytesVisitor() 73 int32_t high_byte) in SetStringCountAndBytesVisitor() 83 int32_t length = String::GetLengthFromCount(count_); in operator() 99 const int32_t count_; 101 const int32_t offset_; 102 const int32_t high_byte_; 108 SetStringCountAndValueVisitorFromCharArray(int32_t count, Handle<CharArray> src_array, in SetStringCountAndValueVisitorFromCharArray() 109 int32_t offset) : in SetStringCountAndValueVisitorFromCharArray() [all …]
|
D | array.h | 43 int32_t component_count, 59 ALWAYS_INLINE int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength() 63 void SetLength(int32_t length) REQUIRES_SHARED(Locks::mutator_lock_) { in SetLength() 76 void* GetRawData(size_t component_size, int32_t index) in GetRawData() 83 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData() 92 ALWAYS_INLINE bool CheckIsValidIndex(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_); 94 Array* CopyOf(Thread* self, int32_t new_length) REQUIRES_SHARED(Locks::mutator_lock_) 102 void ThrowArrayIndexOutOfBoundsException(int32_t index) 106 int32_t length_; 133 T Get(int32_t i) ALWAYS_INLINE REQUIRES_SHARED(Locks::mutator_lock_); [all …]
|
D | method_type.cc | 55 const int32_t dst_ptypes_count = src_ptypes->GetLength() - 1; in CloneWithoutLeadingParameter() 58 for (int32_t i = 0; i < dst_ptypes_count; ++i) { in CloneWithoutLeadingParameter() 66 const int32_t p_types_length = p_types->GetLength(); in NumberOfVRegs() 71 for (int32_t i = 0; i < p_types_length; ++i) { in NumberOfVRegs() 82 const int32_t params_length = p_types->GetLength(); in IsExactMatch() 88 for (int32_t i = 0; i < params_length; ++i) { in IsExactMatch() 98 const int32_t params_length = p_types->GetLength(); in IsConvertible() 112 for (int32_t i = 0; i < params_length; ++i) { in IsConvertible() 126 const int32_t params_length = p_types->GetLength(); in PrettyDescriptor() 127 for (int32_t i = 0; i < params_length; ++i) { in PrettyDescriptor()
|
/art/libartbase/base/ |
D | bit_utils_test.cc | 178 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/entrypoints/quick/ |
D | quick_entrypoints_list.h | 23 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) \ 31 V(AllocStringFromBytes, void*, void*, int32_t, int32_t, int32_t) \ 32 V(AllocStringFromChars, void*, int32_t, int32_t, void*) \ 47 V(Set32Instance, int, uint32_t, void*, int32_t) \ 48 V(Set32Static, int, uint32_t, int32_t) \ 68 V(AputObject, void, mirror::Array*, int32_t, mirror::Object*) \ [all …]
|
D | quick_alloc_entrypoints.cc | 87 mirror::Class* klass, int32_t component_count, Thread* self) \ 94 mirror::ByteArray* byte_array, int32_t high, int32_t offset, int32_t byte_count, \ 104 int32_t offset, int32_t char_count, mirror::CharArray* char_array, Thread* self) \ 132 extern "C" void* art_quick_alloc_array_resolved##suffix(mirror::Class* klass, int32_t); \ 133 extern "C" void* art_quick_alloc_array_resolved8##suffix(mirror::Class* klass, int32_t); \ 134 extern "C" void* art_quick_alloc_array_resolved16##suffix(mirror::Class* klass, int32_t); \ 135 extern "C" void* art_quick_alloc_array_resolved32##suffix(mirror::Class* klass, int32_t); \ 136 extern "C" void* art_quick_alloc_array_resolved64##suffix(mirror::Class* klass, int32_t); \ 140 extern "C" void* art_quick_alloc_string_from_bytes##suffix(void*, int32_t, int32_t, int32_t); \ 141 extern "C" void* art_quick_alloc_string_from_chars##suffix(int32_t, int32_t, void*); \ [all …]
|
D | quick_default_externs.h | 47 extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t); 48 extern "C" int art_quick_set32_static(uint32_t, int32_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*); 124 extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit); 129 extern "C" void art_quick_throw_string_bounds(int32_t index, int32_t limit);
|
/art/tools/dmtracedump/ |
D | tracedump.cc | 40 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 …]
|
D | createtesttrace.cc | 44 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/ |
D | swap_space_test.cc | 44 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/arch/ |
D | memcmp16.cc | 22 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()
|
D | memcmp16.h | 41 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/compiler/utils/arm/ |
D | assembler_arm_vixl.h | 205 int32_t offset); 206 void StoreSToOffset(vixl32::SRegister source, vixl32::Register base, int32_t offset); 207 void StoreDToOffset(vixl32::DRegister source, vixl32::Register base, int32_t offset); 209 void LoadImmediate(vixl32::Register dest, int32_t value); 213 int32_t offset); 214 void LoadSFromOffset(vixl32::SRegister reg, vixl32::Register base, int32_t offset); 215 void LoadDFromOffset(vixl32::DRegister reg, vixl32::Register base, int32_t offset); 224 bool CanSplitLoadStoreOffset(int32_t allowed_offset_bits, 225 int32_t offset, 226 /*out*/ int32_t* add_to_base, [all …]
|
D | assembler_arm_vixl.cc | 102 void ArmVIXLAssembler::LoadImmediate(vixl32::Register rd, int32_t value) { in LoadImmediate() 137 bool ArmVIXLAssembler::CanSplitLoadStoreOffset(int32_t allowed_offset_bits, in CanSplitLoadStoreOffset() 138 int32_t offset, in CanSplitLoadStoreOffset() 139 /*out*/ int32_t* add_to_base, in CanSplitLoadStoreOffset() 140 /*out*/ int32_t* offset_for_load_store) { in CanSplitLoadStoreOffset() 141 int32_t other_bits = offset & ~allowed_offset_bits; in CanSplitLoadStoreOffset() 150 int32_t ArmVIXLAssembler::AdjustLoadStoreOffset(int32_t allowed_offset_bits, in AdjustLoadStoreOffset() 153 int32_t offset) { in AdjustLoadStoreOffset() 155 int32_t add_to_base, offset_for_load; in AdjustLoadStoreOffset() 167 int32_t ArmVIXLAssembler::GetAllowedLoadOffsetBits(LoadOperandType type) { in GetAllowedLoadOffsetBits() [all …]
|
/art/runtime/entrypoints/ |
D | math_entrypoints.cc | 43 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/ |
D | nodes_mips.h | 44 HMipsPackedSwitch(int32_t start_value, in HMipsPackedSwitch() 45 int32_t num_entries, in HMipsPackedSwitch() 58 int32_t GetStartValue() const { return start_value_; } in GetStartValue() 60 int32_t GetNumEntries() const { return num_entries_; } in GetNumEntries() 73 const int32_t start_value_; 74 const int32_t num_entries_;
|
D | nodes_x86.h | 94 HX86PackedSwitch(int32_t start_value, in HX86PackedSwitch() 95 int32_t num_entries, in HX86PackedSwitch() 108 int32_t GetStartValue() const { return start_value_; } in GetStartValue() 110 int32_t GetNumEntries() const { return num_entries_; } in GetNumEntries() 127 const int32_t start_value_; 128 const int32_t num_entries_;
|
/art/tools/cpp-define-generator/ |
D | constant_rosalloc.def | 26 DEFINE_ROSALLOC_CONSTANT(MAX_THREAD_LOCAL_BRACKET_SIZE, int32_t, art::gc::allocator::RosAlloc::kMax… 27 DEFINE_ROSALLOC_CONSTANT(BRACKET_QUANTUM_SIZE_SHIFT, int32_t, art::gc::allocator::RosAlloc::kThr… 29 DEFINE_ROSALLOC_CONSTANT(BRACKET_QUANTUM_SIZE_MASK, int32_t, static_cast<int32_t>(art::gc::allo… 34 DEFINE_ROSALLOC_CONSTANT(RUN_FREE_LIST_OFFSET, int32_t, art::gc::allocator::RosAlloc::RunF… 35 DEFINE_ROSALLOC_CONSTANT(RUN_FREE_LIST_HEAD_OFFSET, int32_t, art::gc::allocator::RosAlloc::RunF… 36 DEFINE_ROSALLOC_CONSTANT(RUN_FREE_LIST_SIZE_OFFSET, int32_t, art::gc::allocator::RosAlloc::RunF… 37 DEFINE_ROSALLOC_CONSTANT(SLOT_NEXT_OFFSET, int32_t, art::gc::allocator::RosAlloc::RunS…
|
D | constant_dexcache.def | 21 DEFINE_EXPR(STRING_DEX_CACHE_ELEMENT_SIZE_SHIFT, int32_t, 23 DEFINE_EXPR(STRING_DEX_CACHE_SIZE_MINUS_ONE, int32_t, 25 DEFINE_EXPR(STRING_DEX_CACHE_HASH_BITS, int32_t, 27 DEFINE_EXPR(STRING_DEX_CACHE_ELEMENT_SIZE, int32_t, 29 DEFINE_EXPR(METHOD_DEX_CACHE_SIZE_MINUS_ONE, int32_t, 31 DEFINE_EXPR(METHOD_DEX_CACHE_HASH_BITS, int32_t,
|
/art/runtime/ |
D | barrier_test.cc | 55 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()
|