/art/runtime/ |
H A D | method_reference.h | 26 // A method is uniquely located by its DexFile and the method_ids_ table index into that DexFile 28 MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) { argument
|
H A D | monitor_pool_test.cc | 80 size_t index = r.next() % monitors.size(); local 81 Monitor* mon = monitors[index]; 82 monitors.erase(monitors.begin() + index); 112 size_t index = r.next() % monitors.size(); local 113 Monitor* mon = monitors[index]; 114 monitors.erase(monitors.begin() + index);
|
H A D | gc_map.h | 40 const uint8_t* GetBitMap(size_t index) const { 41 size_t entry_offset = index * EntryWidth(); 45 // Get the native PC encoded in the table at the given index. 46 uintptr_t GetNativePcOffset(size_t index) const { 47 size_t entry_offset = index * EntryWidth(); 68 size_t index = Hash(native_pc_offset) % num_entries; local 70 while (GetNativePcOffset(index) != native_pc_offset) { 71 index = (index + 1) % num_entries; 75 return GetBitMap(index); [all...] |
H A D | indirect_reference_table.cc | 108 size_t index; local 119 index = pScan - table_; 123 index = topIndex++; 126 table_[index].Add(obj); 127 result = ToIndirectRef(index); 147 // If the entry is not between the current top index and the bottom index 170 LOG(WARNING) << "Attempt to remove index outside index area (" << idx 176 LOG(WARNING) << "Attempt to remove invalid index " << id [all...] |
H A D | monitor_pool.h | 119 size_t index = offset / kChunkSize; local 121 uintptr_t base = *(monitor_chunks_.LoadRelaxed()+index); 133 for (size_t index = 0; index < num_chunks_; ++index) { 134 uintptr_t chunk_addr = *(monitor_chunks_.LoadRelaxed() + index); 136 return OffsetToMonitorId(reinterpret_cast<uintptr_t>(mon) - chunk_addr + index * kChunkSize);
|
/art/runtime/mirror/ |
H A D | string-inl.h | 57 inline uint16_t String::CharAt(int32_t index) { argument 61 if (UNLIKELY(static_cast<uint32_t>(index) >= static_cast<uint32_t>(count_))) { 65 "length=%i; index=%i", count_, index); 68 return GetCharArray()->Get(index + GetOffset());
|
H A D | array.cc | 119 void Array::ThrowArrayIndexOutOfBoundsException(int32_t index) { argument 120 art::ThrowArrayIndexOutOfBoundsException(index, GetLength());
|
H A D | array-inl.h | 49 inline bool Array::CheckIsValidIndex(int32_t index) { argument 50 if (UNLIKELY(static_cast<uint32_t>(index) >= 52 ThrowArrayIndexOutOfBoundsException(index);
|
/art/compiler/optimizing/ |
H A D | parallel_move_test.cc | 29 virtual void EmitMove(size_t index) { argument 30 MoveOperands* move = moves_.Get(index); 41 virtual void EmitSwap(size_t index) { argument 42 MoveOperands* move = moves_.Get(index);
|
H A D | parallel_move_resolver.cc | 65 void ParallelMoveResolver::PerformMove(size_t index) { argument 73 DCHECK(!moves_.Get(index)->IsPending()); 74 DCHECK(!moves_.Get(index)->IsRedundant()); 79 DCHECK(!moves_.Get(index)->GetSource().IsInvalid()); 80 Location destination = moves_.Get(index)->MarkPending(); 101 MoveOperands* move = moves_.Get(index); 128 EmitSwap(index); 145 EmitMove(index);
|
/art/runtime/native/ |
H A D | java_lang_VMClassLoader.cc | 61 * entry 'index' of the boot class path. 72 static jstring VMClassLoader_getBootClassPathResource(JNIEnv* env, jclass, jstring javaName, jint index) { argument 79 if (index < 0 || size_t(index) >= path.size()) { 82 const DexFile* dex_file = path[index];
|
/art/test/106-exceptions2/src/ |
H A D | Main.java | 155 static void throwImplicitAIOBE(int[] array, int index) { argument 156 array[index] = 0;
|
/art/test/407-arrays/src/ |
H A D | Main.java | 33 int[] ints, Object[] objects, long[] longs, int index) { 35 assertEquals(false, bools[index]); 38 assertEquals(0, bytes[index]); 41 assertEquals(0, chars[index]); 44 assertEquals(0, shorts[index]); 47 assertEquals(0, ints[index]); 50 assertNull(objects[index]); 53 assertEquals(0, longs[index]); 57 int[] ints, Object[] objects, long[] longs, int index) { 61 assertEquals(true, bools[index]); 32 $opt$testReads(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, int[] ints, Object[] objects, long[] longs, int index) argument 56 $opt$testWrites(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, int[] ints, Object[] objects, long[] longs, int index) argument 98 ensureThrows(boolean[] array, int index) argument 120 $opt$doArrayLoad(boolean[] array, int index) argument 124 $opt$doArrayStore(boolean[] array, int index) argument [all...] |
/art/compiler/dex/ |
H A D | global_value_numbering.cc | 168 uint16_t GlobalValueNumbering::GetArrayLocation(uint16_t base, uint16_t index) { argument 170 ArrayLocation key = { base, index };
|
H A D | vreg_analysis.cc | 22 bool MIRGraph::SetFp(int index, bool is_fp) { argument 24 if (is_fp && !reg_location_[index].fp) { 25 reg_location_[index].fp = true; 26 reg_location_[index].defined = true; 32 bool MIRGraph::SetFp(int index) { argument 34 if (!reg_location_[index].fp) { 35 reg_location_[index].fp = true; 36 reg_location_[index].defined = true; 42 bool MIRGraph::SetCore(int index, bool is_core) { argument 44 if (is_core && !reg_location_[index] 52 SetCore(int index) argument 62 SetRef(int index, bool is_ref) argument 72 SetRef(int index) argument 82 SetWide(int index, bool is_wide) argument 91 SetWide(int index) argument 100 SetHigh(int index, bool is_high) argument 109 SetHigh(int index) argument [all...] |
/art/compiler/dex/quick/ |
H A D | resource_mask.cc | 157 size_t index = (mask.masks_[1] != 0u) ? CLZ(mask.masks_[1]) : 0u; local 158 DCHECK_LT(index, arraysize(kNoRegMasks)); 159 res = (low_regs != 0) ? &kSingleRegMasks[SingleRegMaskIndex(index, CTZ(low_regs))] 160 : &kNoRegMasks[index];
|
/art/runtime/gc/accounting/ |
H A D | space_bitmap-inl.h | 37 const size_t index = OffsetToIndex(offset); local 39 Atomic<uword>* atomic_entry = reinterpret_cast<Atomic<uword>*>(&bitmap_begin_[index]); 40 DCHECK_LT(index, bitmap_size_ / kWordSize) << " bitmap_size_ = " << bitmap_size_; 163 const size_t index = OffsetToIndex(offset); local 165 DCHECK_LT(index, bitmap_size_ / kWordSize) << " bitmap_size_ = " << bitmap_size_; 166 uword* address = &bitmap_begin_[index];
|
H A D | space_bitmap.h | 59 // <index> is the index of .bits that contains the bit representing 66 static constexpr T IndexToOffset(T index) { argument 67 return static_cast<T>(index * kAlignment * kBitsPerWord); 97 const size_t index = OffsetToIndex(offset); local 98 return index < bitmap_size_ / kWordSize; 188 const size_t index = OffsetToIndex(offset); local 189 return &bitmap_begin_[index];
|
H A D | atomic_stack.h | 67 // Atomically bump the back index by the given number of 73 int32_t index; local 76 index = back_index_.LoadRelaxed(); 77 new_index = index + num_slots; 82 } while (!back_index_.CompareExchangeWeakRelaxed(index, new_index)); 83 *start_address = &begin_[index]; 87 for (int32_t i = index; i < new_index; ++i) { 89 << "i=" << i << " index=" << index << " new_index=" << new_index; 107 int32_t index local 122 int32_t index = front_index_.LoadRelaxed(); local 198 int32_t index; variable [all...] |
/art/compiler/utils/ |
H A D | growable_array.h | 123 void InsertAt(size_t index, T elem) { argument 124 DCHECK(index <= Size()); 126 for (size_t i = Size() - 1; i > index; --i) { 129 elem_list_[index] = elem; 136 T Get(size_t index) const { 137 DCHECK_LT(index, num_used_); 138 return elem_list_[index]; 141 // Overwrite existing element at position index. List must be large enough. 142 void Put(size_t index, T elem) { argument 143 DCHECK_LT(index, num_used 147 Increment(size_t index) argument 172 DeleteAt(size_t index) argument [all...] |
/art/compiler/utils/x86/ |
H A D | assembler_x86.h | 63 Register index() const { function in class:art::x86::Operand 98 void SetSIB(ScaleFactor scale, Register index, Register base) { argument 101 encoding_[1] = (scale << 6) | (index << 3) | base; 123 // Get the operand encoding byte at the given index. 124 uint8_t encoding_at(int index) const { 125 CHECK_GE(index, 0); 126 CHECK_LT(index, length_); 127 return encoding_[index]; 171 Address(Register index, ScaleFactor scale, int32_t disp) { argument 172 CHECK_NE(index, ES 178 Address(Register base, Register index, ScaleFactor scale, int32_t disp) argument [all...] |
/art/compiler/utils/x86_64/ |
H A D | assembler_x86_64.h | 75 Register index() const { function in class:art::x86_64::Operand 118 void SetSIB(ScaleFactor scale, CpuRegister index, CpuRegister base) { argument 124 if (index.NeedsRex()) { 127 encoding_[1] = (scale << 6) | (static_cast<uint8_t>(index.LowBits()) << 3) | 151 // Get the operand encoding byte at the given index. 152 uint8_t encoding_at(int index) const { 153 CHECK_GE(index, 0); 154 CHECK_LT(index, length_); 155 return encoding_[index]; 205 Address(CpuRegister index, ScaleFacto argument 212 Address(CpuRegister base, CpuRegister index, ScaleFactor scale, int32_t disp) argument [all...] |
/art/runtime/interpreter/ |
H A D | interpreter_common.h | 137 // We lost the reference to the method index so we cannot get a more 297 int32_t index = test_val - first_key; local 298 if (index >= 0 && index < size) { 299 return targets[index];
|
H A D | interpreter_goto_table_impl.cc | 89 * to an index in this array of handler tables ((see Instrumentation::GetInterpreterHandlerTable). 602 "failed FILL_ARRAY_DATA; length=%d, index=%d", 973 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 975 if (LIKELY(array->CheckIsValidIndex(index))) { 976 shadow_frame.SetVReg(inst->VRegA_23x(inst_data), array->GetWithoutChecks(index)); 991 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 993 if (LIKELY(array->CheckIsValidIndex(index))) { 994 shadow_frame.SetVReg(inst->VRegA_23x(inst_data), array->GetWithoutChecks(index)); 1009 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1011 if (LIKELY(array->CheckIsValidIndex(index))) { 1027 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1045 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1063 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1081 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1100 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1119 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1138 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1157 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1176 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1195 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1213 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local [all...] |
H A D | interpreter_switch_impl.cc | 517 "failed FILL_ARRAY_DATA; length=%d, index=%d", 872 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 874 if (array->CheckIsValidIndex(index)) { 875 shadow_frame.SetVReg(inst->VRegA_23x(inst_data), array->GetWithoutChecks(index)); 890 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 892 if (array->CheckIsValidIndex(index)) { 893 shadow_frame.SetVReg(inst->VRegA_23x(inst_data), array->GetWithoutChecks(index)); 908 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 910 if (array->CheckIsValidIndex(index)) { 911 shadow_frame.SetVReg(inst->VRegA_23x(inst_data), array->GetWithoutChecks(index)); 926 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 944 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 962 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 980 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 999 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1018 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1037 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1056 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1075 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1094 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local 1112 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local [all...] |