Home
last modified time | relevance | path

Searched refs:new_array (Results 1 – 19 of 19) sorted by relevance

/art/runtime/mirror/
Darray.cc57 Handle<Array> new_array(hs.NewHandle(Array::Alloc<true>( in RecursiveCreateMultiArray() local
59 if (UNLIKELY(new_array == nullptr)) { in RecursiveCreateMultiArray()
73 new_array->AsObjectArray<Array>()->Set<false, false>(i, sub_array); in RecursiveCreateMultiArray()
76 return new_array.Get(); in RecursiveCreateMultiArray()
115 ObjPtr<Array> new_array = RecursiveCreateMultiArray(self, array_class, 0, dimensions); in CreateMultiArray() local
116 if (UNLIKELY(new_array == nullptr)) { in CreateMultiArray()
119 return new_array.Ptr(); in CreateMultiArray()
153 ObjPtr<Array> new_array = in CopyOf() local
155 if (LIKELY(new_array != nullptr)) { in CopyOf()
156 memcpy(new_array->GetRawData(component_size, 0), in CopyOf()
[all …]
Dobject_array-alloc-inl.h72 ObjPtr<ObjectArray<T>> new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf() local
73 if (LIKELY(new_array != nullptr)) { in CopyOf()
74 new_array->AssignableMemcpy(0, h_this.Get(), 0, std::min(h_this->GetLength(), new_length)); in CopyOf()
76 return new_array; in CopyOf()
/art/runtime/native/
Djava_lang_reflect_Array.cc48 ObjPtr<mirror::Array> new_array = in Array_createMultiArray() local
50 return soa.AddLocalReference<jobject>(new_array); in Array_createMultiArray()
69 ObjPtr<mirror::Array> new_array = mirror::ObjectArray<mirror::Object>::Alloc( in Array_createObjectArray() local
74 return soa.AddLocalReference<jobject>(new_array); in Array_createObjectArray()
/art/test/573-checker-checkcast-regression/src/
DMain.java42 static public int test(Object new_array, int index1, int index2) { in test() argument
43 Object[] objectArray = (Object[]) new_array; in test()
/art/test/527-checker-array-access-split/src/
DMain.java311 int[] new_array = new int[1]; in accrossGC() local
313 return new_array; in accrossGC()
/art/compiler/optimizing/
Dload_store_elimination.cc832 void VisitNewArray(HNewArray* new_array) override { in VisitNewArray() argument
833 ReferenceInfo* ref_info = heap_location_collector_.FindReferenceInfoOf(new_array); in VisitNewArray()
839 if (new_array->GetLength()->IsIntConstant() && in VisitNewArray()
840 new_array->GetLength()->AsIntConstant()->GetValue() >= 0) { in VisitNewArray()
842 singleton_new_instances_.push_back(new_array); in VisitNewArray()
848 heap_values_for_[new_array->GetBlock()->GetBlockId()]; in VisitNewArray()
852 if (ref == new_array && location->GetIndex() != nullptr) { in VisitNewArray()
Dbounds_check_elimination_test.cc600 HInstruction* new_array = new (allocator) HNewArray( in BuildSSAGraph3() local
605 block->AddInstruction(new_array); in BuildSSAGraph3()
634 HNullCheck* null_check = new (allocator) HNullCheck(new_array, 0); in BuildSSAGraph3()
981 HInstruction* new_array = new (GetAllocator()) HNewArray( in TEST_F() local
986 block->AddInstruction(new_array); in TEST_F()
1015 new_array, bounds_check_i_mod_10, constant_10, DataType::Type::kInt32, 0); in TEST_F()
1024 new_array, bounds_check_i_mod_1, constant_10, DataType::Type::kInt32, 0); in TEST_F()
1034 new_array, bounds_check_i_mod_200, constant_10, DataType::Type::kInt32, 0); in TEST_F()
1045 new_array, bounds_check_i_mod_minus_10, constant_10, DataType::Type::kInt32, 0); in TEST_F()
1051 HNullCheck* null_check = new (GetAllocator()) HNullCheck(new_array, 0); in TEST_F()
[all …]
Dinstruction_builder.cc1813 HNewArray* new_array = new (allocator_) HNewArray(cls, length, dex_pc, component_type_shift); in BuildNewArray() local
1814 AppendInstruction(new_array); in BuildNewArray()
1815 return new_array; in BuildNewArray()
1824 HNewArray* new_array = BuildNewArray(dex_pc, type_index, length); in BuildFilledNewArray() local
1837 HArraySet* aset = new (allocator_) HArraySet(new_array, index, value, type, dex_pc); in BuildFilledNewArray()
1841 latest_result_ = new_array; in BuildFilledNewArray()
1843 return new_array; in BuildFilledNewArray()
2868 HNewArray* new_array = BuildNewArray(dex_pc, type_index, length); in ProcessDexInstruction() local
2871 BuildConstructorFenceForAllocation(new_array); in ProcessDexInstruction()
2880 HNewArray* new_array = BuildFilledNewArray(dex_pc, type_index, operands); in ProcessDexInstruction() local
[all …]
Dbounds_check_elimination.cc1207 void VisitNewArray(HNewArray* new_array) override { in VisitNewArray() argument
1208 HInstruction* len = new_array->GetLength(); in VisitNewArray()
1219 ValueBound upper = ValueBound(new_array, -right_const); in VisitNewArray()
1221 ValueRange* existing_range = LookupValueRange(left, new_array->GetBlock()); in VisitNewArray()
1225 AssignRange(new_array->GetBlock(), left, range); in VisitNewArray()
Dinduction_var_range_test.cc704 HInstruction* new_array = new (GetAllocator()) HNewArray( in TEST_F() local
709 entry_block_->AddInstruction(new_array); in TEST_F()
710 HInstruction* array_length = new (GetAllocator()) HArrayLength(new_array, 0); in TEST_F()
Dcode_generator.h638 static QuickEntrypointEnum GetArrayAllocationEntrypoint(HNewArray* new_array);
Dcode_generator.cc1656 QuickEntrypointEnum CodeGenerator::GetArrayAllocationEntrypoint(HNewArray* new_array) { in GetArrayAllocationEntrypoint() argument
1657 switch (new_array->GetComponentSizeShift()) { in GetArrayAllocationEntrypoint()
/art/runtime/dex/
Ddex_file_annotations.cc608 Handle<mirror::Array> new_array(hs.NewHandle(mirror::Array::Alloc<true>( in ProcessAnnotationValue() local
611 if (new_array == nullptr) { in ProcessAnnotationValue()
626 new_array->AsObjectArray<mirror::Object>()-> in ProcessAnnotationValue()
631 new_array->AsByteArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
635 new_array->AsShortArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
639 new_array->AsCharArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
643 new_array->AsIntArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
647 new_array->AsLongArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
651 new_array->AsFloatArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
655 new_array->AsDoubleArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
[all …]
/art/dex2oat/linker/
Dimage_writer.h529 std::atomic<mirror::DexCachePair<T>>* new_array,
534 std::atomic<mirror::NativeDexCachePair<T>>* new_array,
538 GcRoot<mirror::CallSite>* new_array,
Dimage_writer.cc3222 std::atomic<mirror::DexCachePair<T>>* new_array, in FixupDexCacheArrayEntry() argument
3229 reinterpret_cast<mirror::DexCachePair<T>*>(&new_array[array_index]); in FixupDexCacheArrayEntry()
3237 std::atomic<mirror::NativeDexCachePair<T>>* new_array, in FixupDexCacheArrayEntry() argument
3246 reinterpret_cast<DexCache::ConversionPair64*>(new_array) + array_index; in FixupDexCacheArrayEntry()
3256 reinterpret_cast<DexCache::ConversionPair32*>(new_array) + array_index; in FixupDexCacheArrayEntry()
3266 GcRoot<mirror::CallSite>* new_array, in FixupDexCacheArrayEntry() argument
3269 new_array[array_index].AddressWithoutBarrier(), orig_array[array_index].Read()); in FixupDexCacheArrayEntry()
3283 EntryType* new_array = NativeCopyLocation(orig_array); in FixupDexCacheArray() local
3285 FixupDexCacheArrayEntry(orig_array, new_array, i); in FixupDexCacheArray()
/art/runtime/interpreter/
Dinterpreter_common.cc1802 ObjPtr<mirror::Object> new_array = mirror::Array::Alloc<true>( in DoFilledNewArray() local
1808 if (UNLIKELY(new_array == nullptr)) { in DoFilledNewArray()
1822 new_array->AsIntArray()->SetWithoutChecks<transaction_active>( in DoFilledNewArray()
1825 new_array->AsObjectArray<mirror::Object>()->SetWithoutChecks<transaction_active>( in DoFilledNewArray()
1830 result->SetL(new_array); in DoFilledNewArray()
Dunstarted_runtime.cc1856 ObjPtr<mirror::Array> new_array = mirror::ObjectArray<mirror::Object>::Alloc( in UnstartedJNIArrayCreateObjectArray() local
1858 result->SetL(new_array); in UnstartedJNIArrayCreateObjectArray()
/art/runtime/gc/space/
Dimage_space.cc640 EntryType* new_array = native_visitor_(old_array); in FixupDexCacheArray() local
641 dex_cache->SetField64<kVerifyNone>(array_offset, reinterpret_cast64<uint64_t>(new_array)); in FixupDexCacheArray()
643 FixupDexCacheArrayEntry(new_array, i); in FixupDexCacheArray()
/art/runtime/
Ddebugger.cc1406 ObjPtr<mirror::Array> new_array = in CreateArrayObject() local
1408 if (new_array == nullptr) { in CreateArrayObject()
1415 *new_array_id = gRegistry->Add(new_array); in CreateArrayObject()