Searched defs:index (Results 1 - 24 of 24) sorted by relevance

/art/runtime/
H A Dmethod_reference.h24 // A class is uniquely located by its DexFile and the class_defs_ table index into that DexFile
27 // A method is uniquely located by its DexFile and the method_ids_ table index into that DexFile
29 MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) { argument
H A Dgc_map.h40 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 Dreflection.cc269 static std::string UnboxingFailureKind(mirror::ArtMethod* m, int index, mirror::ArtField* f)
271 if (m != NULL && index != -1) {
272 ++index; // Humans count from 1.
273 return StringPrintf("method %s argument %d", PrettyMethod(m, false).c_str(), index);
283 mirror::ArtMethod* m, int index, mirror::ArtField* f)
285 bool unbox_for_result = (f == NULL) && (index == -1);
291 UnboxingFailureKind(m, index, f).c_str(),
308 UnboxingFailureKind(m, index, f).c_str()).c_str());
315 UnboxingFailureKind(m, index, f).c_str(),
357 UnboxingFailureKind(m, index,
368 UnboxPrimitiveForArgument(mirror::Object* o, mirror::Class* dst_class, JValue& unboxed_value, mirror::ArtMethod* m, size_t index) argument
[all...]
H A Dcommon_throws.cc85 void ThrowArrayIndexOutOfBoundsException(int index, int length) { argument
87 StringPrintf("length=%d; index=%d", length, index).c_str());
352 // Since we replaced the method index, we ask the verifier to tell us which
383 // Since we replaced the field index, we ask the verifier to tell us which
414 // Since we replaced the field index, we ask the verifier to tell us which
H A Ddisassembler_x86.cc631 uint8_t index = (sib >> 3) & 7; local
636 if (index != 4) {
640 if (index != 4) {
641 DumpIndexReg(address, rex, index);
H A Dcheck_jni.cc1560 static jobject GetObjectArrayElement(JNIEnv* env, jobjectArray array, jsize index) { argument
1561 CHECK_JNI_ENTRY(kFlag_Default, "EaI", env, array, index);
1562 return CHECK_JNI_EXIT("L", baseEnv(env)->GetObjectArrayElement(env, array, index));
1565 static void SetObjectArrayElement(JNIEnv* env, jobjectArray array, jsize index, jobject value) { argument
1566 CHECK_JNI_ENTRY(kFlag_Default, "EaIL", env, array, index, value);
1567 baseEnv(env)->SetObjectArrayElement(env, array, index, value);
H A Djni_internal.cc2057 static jobject GetObjectArrayElement(JNIEnv* env, jobjectArray java_array, jsize index) { argument
2061 return soa.AddLocalReference<jobject>(array->Get(index));
2064 static void SetObjectArrayElement(JNIEnv* env, jobjectArray java_array, jsize index, argument
2070 array->Set(index, value);
/art/runtime/native/
H A Djava_lang_VMClassLoader.cc52 * entry 'index' of the boot class path.
63 static jstring VMClassLoader_getBootClassPathResource(JNIEnv* env, jclass, jstring javaName, jint index) { argument
70 if (index < 0 || size_t(index) >= path.size()) {
73 const DexFile* dex_file = path[index];
/art/compiler/dex/
H A Dlocal_value_numbering.cc376 uint16_t index = GetOperandValue(mir->ssa_rep->uses[1]); local
377 if (ValueExists(ARRAY_REF, array, index, NO_VALUE)) {
385 (void)LookupValue(ARRAY_REF, array, index, NO_VALUE);
388 uint16_t res = LookupValue(ARRAY_REF, array, index, memory_version);
415 uint16_t index = GetOperandValue(mir->ssa_rep->uses[index_idx]); local
416 if (ValueExists(ARRAY_REF, array, index, NO_VALUE)) {
424 (void)LookupValue(ARRAY_REF, array, index, NO_VALUE);
H A Dgrowable_array.h118 T Get(size_t index) const {
119 DCHECK_LT(index, num_used_);
120 return elem_list_[index];
123 // Overwrite existing element at position index. List must be large enough.
124 void Put(size_t index, T elem) { argument
125 DCHECK_LT(index, num_used_);
126 elem_list_[index] = elem;
129 void Increment(size_t index) { argument
130 DCHECK_LT(index, num_used_);
131 elem_list_[index]
[all...]
H A Dvreg_analysis.cc22 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::SetCore(int index, bool is_core) { argument
34 if (is_core && !reg_location_[index].defined) {
35 reg_location_[index].core = true;
36 reg_location_[index].defined = true;
42 bool MIRGraph::SetRef(int index, bool is_ref) { argument
44 if (is_ref && !reg_location_[index]
52 SetWide(int index, bool is_wide) argument
61 SetHigh(int index, bool is_high) argument
[all...]
H A Dmir_graph.h285 * "SuccessorBlockInfo". For catch blocks, key is type index for the exception. For swtich
331 uint32_t index; // Method idx for invokes, type idx for FilledNewArray. member in struct:art::CallInfo
357 * actually the index of the method in the m_units_ array).
547 RegLocation GetRegLocation(int index) { argument
548 DCHECK((index >= 0) && (index > num_ssa_regs_));
549 return reg_location_[index];
583 bool SetFp(int index, bool is_fp);
584 bool SetCore(int index, bool is_core);
585 bool SetRef(int index, boo
[all...]
/art/test/106-exceptions2/src/
H A DMain.java155 static void throwImplicitAIOBE(int[] array, int index) { argument
156 array[index] = 0;
/art/runtime/gc/accounting/
H A Dspace_bitmap-inl.h32 const size_t index = OffsetToIndex(offset); local
34 word* const address = &bitmap_begin_[index];
35 DCHECK_LT(index, bitmap_size_ / kWordSize) << " bitmap_size_ = " << bitmap_size_;
124 const size_t index = OffsetToIndex(offset); local
126 DCHECK_LT(index, bitmap_size_ / kWordSize) << " bitmap_size_ = " << bitmap_size_;
127 word* address = &bitmap_begin_[index];
H A Datomic_stack.h64 int32_t index; local
66 index = back_index_;
67 if (UNLIKELY(static_cast<size_t>(index) >= capacity_)) {
71 } while (!back_index_.compare_and_swap(index, index + 1));
72 begin_[index] = value;
80 int32_t index = back_index_; local
81 DCHECK_LT(static_cast<size_t>(index), capacity_);
82 back_index_ = index + 1;
83 begin_[index]
95 int32_t index = front_index_; local
[all...]
H A Dspace_bitmap.h64 // <index> is the index of .bits that contains the bit representing
70 static uintptr_t IndexToOffset(size_t index) { argument
71 return static_cast<uintptr_t>(index * kAlignment * kBitsPerWord);
101 const size_t index = OffsetToIndex(offset); local
102 return index < bitmap_size_ / kWordSize;
178 const size_t index = OffsetToIndex(offset); local
179 return &bitmap_begin_[index];
/art/compiler/utils/x86/
H A Dassembler_x86.h63 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;
124 // Get the operand encoding byte at the given index.
125 uint8_t encoding_at(int index) const {
126 CHECK_GE(index, 0);
127 CHECK_LT(index, length_);
128 return encoding_[index];
172 Address(Register index, ScaleFactor scale, int32_t disp) { argument
173 CHECK_NE(index, ES
179 Address(Register base, Register index, ScaleFactor scale, int32_t disp) argument
[all...]
H A Dassembler_x86.cc714 void X86Assembler::ffree(const Immediate& index) { argument
715 CHECK_LT(index.value(), 7);
718 EmitUint8(0xC0 + index.value());
/art/compiler/dex/quick/x86/
H A Dassemble_x86.cc377 case kArray: // lir operands - 0: base, 1: index, 2: scale, 3: disp
381 case kArrayReg: // lir operands - 0: base, 1: index, 2: scale, 3: disp, 4: reg
391 case kRegArray: // lir operands - 0: reg, 1: base, 2: index, 3: scale, 4: disp
407 case kArrayImm: // lir operands - 0: base, 1: index, 2: scale, 3: disp 4: immediate
415 case kRegArrayImm: // lir operands - 0: reg, 1: base, 2: index, 3: scale, 4: disp, 5: imm
426 case kShiftArrayImm: // lir operands - 0: base, 1: index, 2: scale, 3: disp 4: immediate
434 case kShiftArrayCl: // lir operands - 0: base, 1: index, 2: scale, 3: disp, 4: reg
440 case kArrayCond: // lir operands - 0: base, 1: index, 2: scale, 3: disp, 4: cond
463 case kX86CallA: // lir operands - 0: base, 1: index, 2: scale, 3: disp
473 // lir operands - 0: reg, 1: base, 2: index,
621 EmitRegArray(const X86EncodingMap* entry, uint8_t reg, uint8_t base, uint8_t index, int scale, int disp) argument
660 EmitArrayReg(const X86EncodingMap* entry, uint8_t base, uint8_t index, int scale, int disp, uint8_t reg) argument
1088 EmitPcRel(const X86EncodingMap* entry, uint8_t reg, int base_or_table, uint8_t index, int scale, int table_or_disp) argument
[all...]
/art/runtime/entrypoints/quick/
H A Dquick_trampoline_entrypoints.cc140 size_t index = param_index_; local
142 index++; // 0th argument must skip return value at start of the shorty
143 } else if (index == 0) {
146 CHECK_LT(index, shorty_len_);
147 return Primitive::GetType(shorty_[index]);
/art/runtime/interpreter/
H A Dinterpreter.cc537 // We lost the reference to the method index so we cannot get a more
693 // We lost the reference to the field index so we cannot get a more
804 // We lost the reference to the field index so we cannot get a more
1508 "failed FILL_ARRAY_DATA; length=%d, index=%d",
1562 int32_t index = test_val - first_key; local
1563 if (index >= 0 && index < size) {
1564 inst = inst->RelativeAt(targets[index]);
1772 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1774 if (LIKELY(array->IsValidIndex(index))) {
1790 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1808 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1826 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1844 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1862 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1880 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1899 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1918 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1937 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1956 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1975 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
1994 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
2012 int32_t index = shadow_frame.GetVReg(inst->VRegC_23x()); local
[all...]
/art/compiler/dex/portable/
H A Dmir_to_gbc.cc457 args.push_back(irb_->getInt32(info->index));
501 ::llvm::Value* index = irb_->getInt32(idx); local
502 ::llvm::Value* res = irb_->CreateCall(intr, index);
520 ::llvm::Value* index = irb_->getInt32(type_idx); local
521 ::llvm::Value* res = irb_->CreateCall(intr, index);
/art/compiler/driver/
H A Dcompiler_driver.cc1030 // Search dex file for localized ssb index, may fail if field's class is a parent
1154 // For invoke-super, ensure the vtable index will be correct to dispatch in the vtable of
1338 typedef void Callback(const ParallelCompilationManager* manager, size_t index);
1406 const size_t index = manager_->NextIndex(); local
1407 if (UNLIKELY(index >= end_)) {
1410 callback_(manager_, index);
/art/compiler/llvm/
H A Dgbc_expander.cc378 llvm::Value* index,
2631 llvm::Value* index,
2653 llvm::Value* cmp = irb_.CreateICmpUGE(index, array_len);
2666 irb_.CreateCall2(irb_.GetRuntime(ThrowIndexOutOfBounds), index, array_len);
2629 EmitGuard_ArrayIndexOutOfBoundsException(uint32_t dex_pc, llvm::Value* array, llvm::Value* index, int opt_flags) argument

Completed in 2452 milliseconds