Home
last modified time | relevance | path

Searched refs:index (Results 26 – 50 of 280) sorted by relevance

12345678910>>...12

/art/compiler/optimizing/
Dstack_map_stream.h105 size_t index = 0; in ForEachBitTable() local
106 callback(index++, &stack_maps_); in ForEachBitTable()
107 callback(index++, &register_masks_); in ForEachBitTable()
108 callback(index++, &stack_masks_); in ForEachBitTable()
109 callback(index++, &inline_infos_); in ForEachBitTable()
110 callback(index++, &method_infos_); in ForEachBitTable()
111 callback(index++, &dex_register_masks_); in ForEachBitTable()
112 callback(index++, &dex_register_maps_); in ForEachBitTable()
113 callback(index++, &dex_register_catalog_); in ForEachBitTable()
114 CHECK_EQ(index, CodeInfo::kNumBitTables); in ForEachBitTable()
Dload_store_analysis.h101 HInstruction* index, in HeapLocation() argument
107 index_(index), in HeapLocation()
113 DCHECK((offset == kInvalidFieldOffset && index != nullptr) || in HeapLocation()
114 (offset != kInvalidFieldOffset && index == nullptr)); in HeapLocation()
221 HeapLocation* GetHeapLocation(size_t index) const { in GetHeapLocation() argument
222 return heap_locations_[index]; in GetHeapLocation()
262 HInstruction* index = instruction->InputAt(1); in GetArrayHeapLocation() local
278 index, in GetArrayHeapLocation()
308 HInstruction* index, in FindHeapLocationIndex() argument
317 loc->GetIndex() == index && in FindHeapLocationIndex()
[all …]
Dparallel_move_resolver.h89 virtual void EmitMove(size_t index) = 0;
92 virtual void EmitSwap(size_t index) = 0;
116 MoveOperands* PerformMove(size_t index);
157 virtual void EmitMove(size_t index) = 0;
176 void PerformMove(size_t index);
/art/libdexfile/dex/
Dmethod_reference.h30 MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} in MethodReference() argument
32 return dex_file->PrettyMethod(index, with_signature);
35 return dex_file->GetMethodId(index); in GetMethodId()
43 DCHECK_EQ(mr1.index < mr2.index, SlowCompare(mr1, mr2)); in operator()
44 return mr1.index < mr2.index; in operator()
Dtype_reference.h34 TypeReference(const DexFile* dex_file, dex::TypeIndex index) in TypeReference() argument
35 : DexFileReference(dex_file, index.index_) {} in TypeReference()
38 return dex::TypeIndex(index); in TypeIndex()
/art/test/626-const-class-linking/src/
DRacyLoader.java25 private int index = 0; field in RacyLoader
62 my_index = index; in syncWithOtherInstances()
63 ++index; in syncWithOtherInstances()
64 if (index != limit) { in syncWithOtherInstances()
71 } while (index < limit); in syncWithOtherInstances()
/art/runtime/mirror/
Dstring-inl.h45 inline uint16_t String::CharAt(int32_t index) { in CharAt() argument
47 if (UNLIKELY((index < 0) || (index >= count))) { in CharAt()
48 ThrowStringIndexOutOfBoundsException(index, count); in CharAt()
52 return GetValueCompressed()[index]; in CharAt()
54 return GetValue()[index]; in CharAt()
Darray.h98 void* GetRawData(size_t component_size, int32_t index) in GetRawData() argument
101 + (index * component_size); in GetRawData()
105 void* GetRawData(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_) { in GetRawData() argument
107 + (index * kComponentSize); in GetRawData()
111 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData() argument
113 + (index * component_size); in GetRawData()
117 const void* GetRawData(int32_t index) const { in GetRawData() argument
119 + (index * kComponentSize); in GetRawData()
126 ALWAYS_INLINE bool CheckIsValidIndex(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_);
136 void ThrowArrayIndexOutOfBoundsException(int32_t index)
[all …]
/art/dex2oat/linker/
Dindex_bss_mapping_encoder.h42 bool TryMerge(uint32_t index, uint32_t bss_offset) { in TryMerge() argument
43 DCHECK_LE(MinimumBitsToStore(index), index_bits_); in TryMerge()
44 DCHECK_NE(index, entry_.GetIndex(index_bits_)); in TryMerge()
48 uint32_t diff = index - entry_.GetIndex(index_bits_); in TryMerge()
59 entry_.index_and_mask = mask | index; in TryMerge()
/art/test/510-checker-try-catch/src/
DMain.java139 int index = ARRAY_SIZE - 2; in testBoundsCheckAndCatch() local
140 boundsCheckAndCatch(index, a, b); in testBoundsCheckAndCatch()
141 expectEquals(2, a[index]); in testBoundsCheckAndCatch()
143 index = ARRAY_SIZE - 1; in testBoundsCheckAndCatch()
144 boundsCheckAndCatch(index, a, b); in testBoundsCheckAndCatch()
145 expectEquals(1, a[index]); in testBoundsCheckAndCatch()
/art/libartbase/base/
Dhash_set.h48 HashSetIterator(HashSetType* hash_set, size_t index) : index_(index), hash_set_(hash_set) {} in HashSetIterator() argument
468 auto find_fail_fn = [&](size_t index) { in InsertWithHash()
470 return index; in InsertWithHash()
472 size_t index = FindIndexImpl(element, hash, find_fail_fn); in InsertWithHash() local
474 data_[index] = std::forward<U>(element); in InsertWithHash()
477 return std::make_pair(iterator(this, index), find_failed); in InsertWithHash()
595 T& ElementForIndex(size_t index) { in ElementForIndex() argument
596 DCHECK_LT(index, NumBuckets()); in ElementForIndex()
598 return data_[index]; in ElementForIndex()
601 const T& ElementForIndex(size_t index) const { in ElementForIndex() argument
[all …]
Darray_slice.h87 reference operator[](size_t index) {
88 DCHECK_LT(index, size_);
89 return AtUnchecked(index);
92 const_reference operator[](size_t index) const {
93 DCHECK_LT(index, size_);
94 return AtUnchecked(index);
156 T& AtUnchecked(size_t index) { in AtUnchecked() argument
157 return *reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(array_) + index * element_size_); in AtUnchecked()
160 const T& AtUnchecked(size_t index) const { in AtUnchecked() argument
161 return *reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(array_) + index * element_size_); in AtUnchecked()
/art/test/497-inlining-and-class-loader/
Dclear_dex_cache.cc52 uint32_t index = pair.index; in Java_Main_cloneResolvedMethods() local
56 int_array->Set(2u * i, index); in Java_Main_cloneResolvedMethods()
60 long_array->Set(2u * i, index); in Java_Main_cloneResolvedMethods()
78 uint32_t index; in Java_Main_restoreResolvedMethods() local
82 index = static_cast<uint32_t>(int_array->Get(2u * i)); in Java_Main_restoreResolvedMethods()
86 index = dchecked_integral_cast<uint32_t>(long_array->Get(2u * i)); in Java_Main_restoreResolvedMethods()
89 mirror::MethodDexCachePair pair(method, index); in Java_Main_restoreResolvedMethods()
/art/test/410-floats/src/
DMain.java103 public static void testArrayOperations(float[] a, int index, float value1, float value2) { in testArrayOperations() argument
110 a[index] = value1; in testArrayOperations()
111 a[index + 1] = value2; in testArrayOperations()
117 public static void testArrayOperations(double[] a, int index, double value1, double value2) { in testArrayOperations() argument
124 a[index] = value1; in testArrayOperations()
125 a[index + 1] = value2; in testArrayOperations()
/art/runtime/
Dmonitor_pool_test.cc80 size_t index = r.next() % monitors.size(); in TEST_F() local
81 Monitor* mon = monitors[index]; in TEST_F()
82 monitors.erase(monitors.begin() + index); in TEST_F()
112 size_t index = r.next() % monitors.size(); in TEST_F() local
113 Monitor* mon = monitors[index]; in TEST_F()
114 monitors.erase(monitors.begin() + index); in TEST_F()
/art/test/163-app-image-methods/src/
DMain.java76 int index = 0; in eatAllMemory() local
77 while (index != result.length && size != 0) { in eatAllMemory()
79 result[index] = new byte[size]; in eatAllMemory()
80 ++index; in eatAllMemory()
/art/runtime/interpreter/mterp/arm/
Darray.S18 GET_VREG r1, r3 @ r1<- vCC (requested index)
22 add r0, r0, r1, lsl #$shift @ r0<- arrayObj + index*width
23 cmp r1, r3 @ compare unsigned index, length
24 bcs common_errArrayIndex @ index >= length, bail
52 GET_VREG r1, r3 @ r1<- vCC (requested index)
53 bl artAGetObjectFromMterp @ (array, index)
78 GET_VREG r1, r3 @ r1<- vCC (requested index)
82 add r0, r0, r1, lsl #3 @ r0<- arrayObj + index*width
83 cmp r1, r3 @ compare unsigned index, length
84 bcs common_errArrayIndex @ index >= length, bail
[all …]
/art/test/121-modifiers/src2/
DMain.java138 int index = name.indexOf("Field"); in getFieldMask() local
139 if (index > 0) { in getFieldMask()
140 String shortS = name.substring(0, index); in getFieldMask()
167 int index = name.indexOf("Method"); in getMethodMask() local
168 if (index > 0) { in getMethodMask()
169 String shortS = name.substring(0, index); in getMethodMask()
/art/test/1960-checker-bounds-codegen/src/
DMain.java56 public static int constantLength(int index) { in constantLength() argument
59 a[index] = 1; in constantLength()
63 return index; in constantLength()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DSuperRoot.java54 public Reference get(int index) { in getReferences() argument
55 String field = ".roots[" + Integer.toString(index) + "]"; in getReferences()
56 return new Reference(SuperRoot.this, field, mRoots.get(index), Reachability.STRONG); in getReferences()
/art/tools/dexfuzz/src/dexfuzz/program/mutators/
DRandomBranchChanger.java55 int index = opcode.ordinal() - Opcode.IF_EQ.ordinal(); in getModifiedOpcode() local
57 return EQUALITY_CMP_OP_LIST[(index + 1 + rng.nextInt(length - 1)) % length]; in getModifiedOpcode()
59 int index = opcode.ordinal() - Opcode.IF_EQZ.ordinal(); in getModifiedOpcode() local
61 return ZERO_CMP_OP_LIST[(index + 1 + rng.nextInt(length - 1)) % length]; in getModifiedOpcode()
/art/test/693-vdex-inmem-loader-evict/src/
DMain.java102 private static byte[] createDex(int index) { in createDex() argument
103 if (index >= 100) { in createDex()
111 System.arraycopy(DEX_BYTES_CHECKSUMS[index], 0, dex, DEX_BYTES_CHECKSUM_OFFSET, in createDex()
123 byte str_id1 = (byte) (0x30 + ((index + 1) / 10)); in createDex()
124 byte str_id2 = (byte) (0x30 + ((index + 1) % 10)); in createDex()
133 private static ClassLoader loadDex(int index) { in loadDex() argument
134 return new InMemoryDexClassLoader(ByteBuffer.wrap(createDex(index)), /*parent*/ null); in loadDex()
/art/test/609-checker-x86-bounds-check/src/
DMain.java85 static void testArrayLengthBoundsCheckX86(int[] array, int index) { in testArrayLengthBoundsCheckX86() argument
86 array[index] = 9; in testArrayLengthBoundsCheckX86()
/art/test/562-checker-no-intermediate/src/
DMain.java92 array[index] += $noinline$abs(-42); in main()
99 static int index = 0; field in Main
/art/runtime/interpreter/mterp/x86/
Darray.S12 GET_VREG %ecx, %ecx # ecx <- vCC (requested index)
16 jae common_errArrayIndex # index >= length, bail.
40 GET_VREG %ecx, %ecx # ecs <- vCC (requested index)
44 call SYMBOL(artAGetObjectFromMterp) # (array, index)
63 GET_VREG %ecx, %ecx # ecx <- vCC (requested index)
67 jae common_errArrayIndex # index >= length, bail.
84 GET_VREG %ecx, %ecx # ecx <- vCC (requested index)
88 jae common_errArrayIndex # index >= length, bail.
114 call SYMBOL(MterpAputObject) # (array, index)
132 GET_VREG %ecx, %ecx # ecx <- vCC (requested index)
[all …]

12345678910>>...12