Searched defs:idx (Results 1 - 25 of 47) sorted by relevance

12

/art/runtime/mirror/
H A Diftable-inl.h28 const size_t idx = i * kMax + kInterface; local
29 DCHECK_EQ(Get(idx), static_cast<Object*>(nullptr));
30 SetWithoutChecks<false>(idx, interface);
H A Diftable.h50 auto idx = i * kMax + kMethodArray; local
51 DCHECK(Get(idx) == nullptr);
52 Set<false>(idx, arr);
H A Ddex_cache-inl.h42 inline ArtField* DexCache::GetResolvedField(uint32_t idx, size_t ptr_size) { argument
44 auto* field = GetResolvedFields()->GetElementPtrSize<ArtField*>(idx, ptr_size);
51 inline void DexCache::SetResolvedField(uint32_t idx, ArtField* field, size_t ptr_size) { argument
53 GetResolvedFields()->SetElementPtrSize(idx, field, ptr_size);
67 inline void DexCache::SetResolvedMethod(uint32_t idx, ArtMethod* method, size_t ptr_size) { argument
69 GetResolvedMethods()->SetElementPtrSize(idx, method, ptr_size);
H A Dfield.h123 void SetDexFieldIndex(uint32_t idx) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
124 SetField32<kTransactionActive>(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); local
H A Darray-inl.h375 inline T PointerArray::GetElementPtrSize(uint32_t idx, size_t ptr_size) { argument
379 return (T)static_cast<uintptr_t>(AsLongArray()->GetWithoutChecks(idx));
382 return (T)static_cast<uintptr_t>(AsIntArray()->GetWithoutChecks(idx));
386 inline void PointerArray::SetElementPtrSize(uint32_t idx, T element, size_t ptr_size) { argument
389 SetWithoutChecks<kTransactionActive>(idx, (uint64_t)(element));
394 ->SetWithoutChecks<kTransactionActive>(idx, static_cast<uint32_t>((uintptr_t)element));
/art/runtime/base/
H A Dbit_utils_test.cc325 size_t idx = 0u; local
327 EXPECT_EQ(*expected_it, *element_it) << idx;
328 ++idx;
H A Dbit_vector.h44 * for (uint32_t idx : bit_vector.Indexes()) {
45 * // Use idx.
134 void SetBit(uint32_t idx) { argument
139 if (idx >= storage_size_ * kWordBits) {
140 EnsureSize(idx);
142 storage_[WordIndex(idx)] |= BitMask(idx);
146 void ClearBit(uint32_t idx) { argument
148 if (idx < storage_size_ * kWordBits) {
150 storage_[WordIndex(idx)]
232 IsBitSet(const uint32_t* storage, uint32_t idx) argument
254 WordIndex(uint32_t idx) argument
259 BitMask(uint32_t idx) argument
[all...]
H A Dbit_vector.cc124 uint32_t idx; local
125 for (idx = 0; idx < min_size; idx++) {
126 storage_[idx] &= src->GetRawStorageWord(idx);
133 for (; idx < storage_size_; idx++) {
134 storage_[idx] = 0;
161 for (uint32_t idx
195 uint32_t idx = 0; local
255 uint32_t idx; local
352 EnsureSize(uint32_t idx) argument
[all...]
H A Dtiming_logger.h115 uint64_t GetTotalTime(size_t idx) { argument
116 return data_[idx].total_time;
118 uint64_t GetExclusiveTime(size_t idx) { argument
119 return data_[idx].exclusive_time;
/art/runtime/
H A Dindirect_reference_table-inl.h44 int idx = ExtractIndex(iref); local
45 if (UNLIKELY(idx >= topIndex)) {
47 << iref << " (index " << idx << " in a table of size " << topIndex << ")";
51 if (UNLIKELY(table_[idx].GetReference()->IsNull())) {
56 if (UNLIKELY(!CheckEntry("use", iref, idx))) {
62 // Make sure that the entry at "idx" is correctly paired with "iref".
63 inline bool IndirectReferenceTable::CheckEntry(const char* what, IndirectRef iref, int idx) const {
64 IndirectRef checkRef = ToIndirectRef(idx);
80 uint32_t idx = ExtractIndex(iref); local
81 mirror::Object* obj = table_[idx]
91 uint32_t idx = ExtractIndex(iref); local
[all...]
H A Dutils.h319 inline bool TestBitmap(size_t idx, const uint8_t* bitmap) { argument
320 return ((bitmap[idx / kBitsPerByte] >> (idx % kBitsPerByte)) & 0x01) != 0;
H A Dclass_linker-inl.h194 inline mirror::DexCache* ClassLinker::GetDexCache(size_t idx) { argument
196 DCHECK(idx < dex_caches_.size());
197 return dex_caches_[idx].Read();
H A Dindirect_reference_table.cc196 const int idx = ExtractIndex(iref); local
197 if (idx < bottomIndex) {
199 LOG(WARNING) << "Attempt to remove index outside index area (" << idx
203 if (idx >= topIndex) {
205 LOG(WARNING) << "Attempt to remove invalid index " << idx
210 if (idx == topIndex - 1) {
213 if (!CheckEntry("remove", iref, idx)) {
217 *table_[idx].GetReference() = GcRoot<mirror::Object>(nullptr);
245 if (table_[idx].GetReference()->IsNull()) {
246 LOG(INFO) << "--- WEIRD: removing null entry " << idx;
[all...]
/art/compiler/dex/
H A Ddataflow_iterator-inl.h132 BasicBlockId idx = idx_; local
134 BasicBlock* bb = mir_graph_->GetBasicBlock((*block_id_list_)[idx]);
136 if ((*loop_ends_)[idx] != 0u) {
137 loop_head_stack_->push_back(std::make_pair(idx, false)); // Not recalculating.
180 BasicBlockId idx = idx_; local
182 BasicBlock* bb = mir_graph_->GetBasicBlock((*block_id_list_)[idx]);
184 if ((*loop_ends_)[idx] != 0u) {
191 loop_head_stack_->push_back(std::make_pair(idx, recalculating));
H A Dglobal_value_numbering.h280 size_t idx = i; local
289 idx = j;
294 field_ids[i] = idx;
H A Dssa_transformation.cc121 * register idx is defined in BasicBlock bb.
128 for (uint32_t idx : bb->data_flow_info->def_v->Indexes()) {
129 /* Block bb defines register idx */
130 temp_.ssa.def_block_matrix[idx]->SetBit(bb->id);
422 unsigned int idx; local
423 for (idx = 0; idx < dest->GetStorageSize(); idx++) {
424 dest->GetRawStorage()[idx] |= src1->GetRawStorageWord(idx)
521 int idx = 0; local
[all...]
/art/compiler/utils/
H A Ddex_cache_arrays_layout-inl.h72 inline size_t DexCacheArraysLayout::ElementOffset(size_t element_size, uint32_t idx) { argument
73 return mirror::Array::DataOffset(element_size).Uint32Value() + element_size * idx;
/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/
H A DRawInsnHelper.java25 * Read a signed byte from the idx into the raw array.
27 public static long getSignedByteFromByte(byte[] raw, int idx) { argument
28 return (long) raw[idx];
32 * Read an unsigned byte from the idx into the raw array.
34 public static long getUnsignedByteFromByte(byte[] raw, int idx) { argument
35 return ((long) raw[idx]) & 0xff;
39 * Read an unsigned lower 4 bits from the idx into the raw array.
41 public static long getUnsignedLowNibbleFromByte(byte[] raw, int idx) { argument
42 return ((long) raw[idx]) & 0xf;
46 * Read an unsigned higher 4 bits from the idx int
48 getUnsignedHighNibbleFromByte(byte[] raw, int idx) argument
55 getUnsignedShortFromTwoBytes(byte[] raw, int idx) argument
63 getSignedShortFromTwoBytes(byte[] raw, int idx) argument
71 getUnsignedIntFromFourBytes(byte[] raw, int idx) argument
81 getSignedIntFromFourBytes(byte[] raw, int idx) argument
91 getSignedLongFromEightBytes(byte[] raw, int idx) argument
105 writeUnsignedIntToFourBytes(byte[] raw, int idx, int value) argument
115 writeUnsignedShortToTwoBytes(byte[] raw, int idx, int value) argument
[all...]
/art/runtime/gc/allocator/
H A Drosalloc-inl.h70 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); local
71 DCHECK_EQ(idx, SizeToIndex(size));
72 DCHECK_EQ(bracket_size, IndexToBracketSize(idx));
73 DCHECK_EQ(bracket_size, bracketSizes[idx]);
76 DCHECK_LT(idx, kNumThreadLocalSizeBrackets);
77 Run* thread_local_run = reinterpret_cast<Run*>(self->GetRosAllocRun(idx));
80 MutexLock mu(self, *size_bracket_locks_[idx]);
81 CHECK(non_full_runs_[idx].find(thread_local_run) == non_full_runs_[idx].end());
82 CHECK(full_runs_[idx]
96 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); local
118 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); local
123 const size_t idx = size_bracket_idx_; local
[all...]
H A Drosalloc.h296 static size_t IndexToBracketSize(size_t idx) { argument
297 DCHECK_LT(idx, kNumOfSizeBrackets);
298 return bracketSizes[idx];
303 size_t idx; local
305 idx = kNumOfSizeBrackets - 2;
307 idx = kNumOfSizeBrackets - 1;
311 idx = size / 16 - 1;
313 DCHECK(bracketSizes[idx] == size);
314 return idx;
355 size_t idx
[all...]
/art/compiler/linker/arm64/
H A Drelative_patcher_arm64.cc213 size_t idx = num_thunks - (processed_adrp_thunks_ - i); local
214 adrp = GetInsn(&current_method_thunks_, idx * kAdrpThunkSize);
/art/compiler/linker/
H A Drelative_patcher_test.h85 size_t idx = 0u; local
87 offset = patcher_->ReserveSpace(offset, compiled_method.get(), compiled_method_refs_[idx]);
98 method_offset_map_.map.Put(compiled_method_refs_[idx], quick_code_offset);
99 ++idx;
157 size_t idx = 0u; local
163 ++idx;
165 CHECK_NE(idx, compiled_method_refs_.size());
166 CHECK_EQ(compiled_methods_[idx]->GetQuickCode()->size(), expected_code.size());
170 size_t offset = result.second - compiled_methods_[idx]->CodeDelta();
/art/tools/dexfuzz/src/dexfuzz/program/
H A DMutatableCode.java138 public MInsn getInstructionAt(int idx) { argument
139 return mutatableInsns.get(idx);
206 int idx = 0;
209 matchesIndicesToChange.add(idx);
212 replacementIndicesToChange.add(idx);
215 idx++;
264 int idx = 0;
267 indicesToChange.add(idx);
268 Log.debug(switchInsn + "[" + idx
271 idx
[all...]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DOffsetTracker.java310 int idx = 0;
315 idx++;
318 rawDexFile.mapList.mapItems.add(idx, typeListMapItem);
336 int idx = 0;
341 idx++;
344 rawDexFile.mapList.mapItems.add(idx, fieldMapItem);
397 private void insertOffsettableAt(int idx, Offsettable offsettable) { argument
398 offsettableTable.add(idx, offsettable);
399 if (indexAfterMapList > idx) {
402 if (restorePoint > idx) {
[all...]
/art/cmdline/detail/
H A Dcmdline_parse_argument_detail.h337 size_t idx = 0; local
339 auto&& arg_token = arguments[idx];
349 + " at token " + std::to_string(idx));
362 + " at token " + std::to_string(idx));
375 ++idx;

Completed in 304 milliseconds

12