/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/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/mirror/ |
D | string.h | 86 int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength() 91 int32_t GetCount() REQUIRES_SHARED(Locks::mutator_lock_) { in GetCount() 95 void SetCount(int32_t new_count) REQUIRES_SHARED(Locks::mutator_lock_) { in SetCount() 101 int32_t GetHashCode() REQUIRES_SHARED(Locks::mutator_lock_); 104 int32_t ComputeHashCode() REQUIRES_SHARED(Locks::mutator_lock_); 106 int32_t GetUtfLength() REQUIRES_SHARED(Locks::mutator_lock_); 108 uint16_t CharAt(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_); 119 int32_t byte_length, 121 int32_t offset, 122 int32_t high_byte, [all …]
|
D | object_array.h | 36 int32_t length, 42 int32_t length) 47 ALWAYS_INLINE ObjPtr<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 ObjPtr<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-alloc-inl.h | 39 explicit SetStringCountVisitor(int32_t count) : count_(count) { in SetStringCountVisitor() 51 const int32_t count_; 57 SetStringCountAndBytesVisitor(int32_t count, Handle<ByteArray> src_array, int32_t offset, in SetStringCountAndBytesVisitor() 58 int32_t high_byte) in SetStringCountAndBytesVisitor() 68 int32_t length = String::GetLengthFromCount(count_); in operator() 84 const int32_t count_; 86 const int32_t offset_; 87 const int32_t high_byte_; 93 SetStringCountAndValueVisitorFromCharArray(int32_t count, Handle<CharArray> src_array, in SetStringCountAndValueVisitorFromCharArray() 94 int32_t offset) : in SetStringCountAndValueVisitorFromCharArray() [all …]
|
D | string.cc | 37 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 int32_t String::GetUtfLength() { in GetUtfLength() 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() 125 int32_t length = string->GetLength(); in AllocFromStrings() 126 int32_t length2 = string2->GetLength(); in AllocFromStrings() [all …]
|
D | array.h | 46 int32_t component_count, 61 ALWAYS_INLINE int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength() 65 void SetLength(int32_t length) REQUIRES_SHARED(Locks::mutator_lock_) { in SetLength() 95 void* GetRawData(size_t component_size, int32_t index) in GetRawData() 102 void* GetRawData(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_) { in GetRawData() 108 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData() 114 const void* GetRawData(int32_t index) const { in GetRawData() 123 ALWAYS_INLINE bool CheckIsValidIndex(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_); 125 ObjPtr<Array> CopyOf(Thread* self, int32_t new_length) REQUIRES_SHARED(Locks::mutator_lock_) 133 void ThrowArrayIndexOutOfBoundsException(int32_t index) [all …]
|
D | string-inl.h | 45 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()
|
D | method_type.cc | 63 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 …]
|
D | iftable.h | 30 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/libartpalette/include/palette/ |
D | palette_method_list.h | 25 M(PaletteGetVersion, /*out*/int32_t* version) \ 26 M(PaletteSchedSetPriority, int32_t tid, int32_t java_priority) \ 27 M(PaletteSchedGetPriority, int32_t tid, /*out*/int32_t* java_priority) \ 29 M(PaletteTraceEnabled, /*out*/int32_t* enabled) \ 32 M(PaletteTraceIntegerValue, const char* name, int32_t value)
|
/art/libartpalette/system/ |
D | palette_fake.cc | 27 enum PaletteStatus PaletteGetVersion(int32_t* version) { in PaletteGetVersion() 34 static std::map<int32_t, int32_t> g_tid_priority_map; 36 enum PaletteStatus PaletteSchedSetPriority(int32_t tid, int32_t priority) { in PaletteSchedSetPriority() 46 enum PaletteStatus PaletteSchedGetPriority(int32_t tid, in PaletteSchedGetPriority() 47 /*out*/int32_t* priority) { in PaletteSchedGetPriority() 61 enum PaletteStatus PaletteTraceEnabled(/*out*/int32_t* enabled) { in PaletteTraceEnabled() 75 int32_t value ATTRIBUTE_UNUSED) { in PaletteTraceIntegerValue()
|
D | palette_system.h | 25 static constexpr int32_t kPaletteVersion = 1; 28 static constexpr int32_t kNormalManagedThreadPriority = 5; 29 static constexpr int32_t kMinManagedThreadPriority = 1; 30 static constexpr int32_t kMaxManagedThreadPriority = 10; 31 static constexpr int32_t kNumManagedThreadPriorities =
|
/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) \ 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 …]
|
D | quick_alloc_entrypoints.cc | 95 mirror::Class* klass, int32_t component_count, Thread* self) \ 102 mirror::ByteArray* byte_array, int32_t high, int32_t offset, int32_t byte_count, \ 112 int32_t offset, int32_t char_count, mirror::CharArray* char_array, Thread* self) \ 140 extern "C" void* art_quick_alloc_array_resolved##suffix(mirror::Class* klass, int32_t); \ 141 extern "C" void* art_quick_alloc_array_resolved8##suffix(mirror::Class* klass, int32_t); \ 142 extern "C" void* art_quick_alloc_array_resolved16##suffix(mirror::Class* klass, int32_t); \ 143 extern "C" void* art_quick_alloc_array_resolved32##suffix(mirror::Class* klass, int32_t); \ 144 extern "C" void* art_quick_alloc_array_resolved64##suffix(mirror::Class* klass, int32_t); \ 149 extern "C" void* art_quick_alloc_string_from_bytes##suffix(void*, int32_t, int32_t, int32_t); \ 150 extern "C" void* art_quick_alloc_string_from_chars##suffix(int32_t, int32_t, void*); \ [all …]
|
D | quick_default_externs.h | 49 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/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/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 …]
|
/art/runtime/ |
D | dex_register_location.h | 31 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/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/libdexfile/external/ |
D | dex_file_supp_test.cc | 189 EXPECT_EQ(info.offset, int32_t{0x100}); in TEST() 190 EXPECT_EQ(info.len, int32_t{8}); in TEST() 194 EXPECT_EQ(info.offset, int32_t{0x118}); in TEST() 195 EXPECT_EQ(info.len, int32_t{2}); in TEST() 200 EXPECT_EQ(info.offset, int32_t{0x100}); in TEST() 201 EXPECT_EQ(info.len, int32_t{8}); in TEST() 210 EXPECT_EQ(info.offset, int32_t{0x100}); in TEST() 211 EXPECT_EQ(info.len, int32_t{8}); in TEST() 215 EXPECT_EQ(info.offset, int32_t{0x118}); in TEST() 216 EXPECT_EQ(info.len, int32_t{2}); in TEST() [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()
|