Home
last modified time | relevance | path

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

/art/runtime/mirror/
Darray.cc50 Handle<Array> new_array( in RecursiveCreateMultiArray() local
55 if (UNLIKELY(new_array == nullptr)) { in RecursiveCreateMultiArray()
71 new_array->AsObjectArray<Array>()->Set<false, false>(i, sub_array); in RecursiveCreateMultiArray()
74 return new_array.Get(); in RecursiveCreateMultiArray()
114 ObjPtr<Array> new_array = RecursiveCreateMultiArray(self, array_class, 0, dimensions); in CreateMultiArray() local
115 if (UNLIKELY(new_array == nullptr)) { in CreateMultiArray()
118 return new_array.Ptr(); in CreateMultiArray()
140 …ObjPtr<Array> new_array = Alloc<true>(self, GetClass(), new_length, component_shift, allocator_typ… in CopyOf() local
141 if (LIKELY(new_array != nullptr)) { in CopyOf()
142 memcpy(new_array->GetRawData(component_size, 0), in CopyOf()
[all …]
Dobject_array-inl.h357 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf() local
358 if (LIKELY(new_array != nullptr)) { in CopyOf()
359 new_array->AssignableMemcpy(0, h_this.Get(), 0, std::min(h_this->GetLength(), new_length)); in CopyOf()
361 return new_array; in CopyOf()
/art/runtime/native/
Djava_lang_reflect_Array.cc47 mirror::Array* new_array = mirror::Array::CreateMultiArray(soa.Self(), 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.cc901 void VisitNewArray(HNewArray* new_array) OVERRIDE { in VisitNewArray() argument
902 ReferenceInfo* ref_info = heap_location_collector_.FindReferenceInfoOf(new_array); in VisitNewArray()
908 if (new_array->GetLength()->IsIntConstant() && in VisitNewArray()
909 new_array->GetLength()->AsIntConstant()->GetValue() >= 0) { in VisitNewArray()
911 singleton_new_instances_.push_back(new_array); in VisitNewArray()
917 heap_values_for_[new_array->GetBlock()->GetBlockId()]; in VisitNewArray()
921 if (ref == new_array && location->GetIndex() != nullptr) { in VisitNewArray()
Dbounds_check_elimination_test.cc600 HInstruction* new_array = new (allocator) HNewArray( in BuildSSAGraph3() local
604 block->AddInstruction(new_array); in BuildSSAGraph3()
633 HNullCheck* null_check = new (allocator) HNullCheck(new_array, 0); in BuildSSAGraph3()
980 HInstruction* new_array = new (GetAllocator()) HNewArray(constant_10, constant_10, 0); in TEST_F() local
981 block->AddInstruction(new_array); in TEST_F()
1010 new_array, bounds_check_i_mod_10, constant_10, DataType::Type::kInt32, 0); in TEST_F()
1019 new_array, bounds_check_i_mod_1, constant_10, DataType::Type::kInt32, 0); in TEST_F()
1029 new_array, bounds_check_i_mod_200, constant_10, DataType::Type::kInt32, 0); in TEST_F()
1040 new_array, bounds_check_i_mod_minus_10, constant_10, DataType::Type::kInt32, 0); in TEST_F()
1046 HNullCheck* null_check = new (GetAllocator()) HNullCheck(new_array, 0); in TEST_F()
[all …]
Dbounds_check_elimination.cc1205 void VisitNewArray(HNewArray* new_array) OVERRIDE { in VisitNewArray() argument
1206 HInstruction* len = new_array->GetLength(); in VisitNewArray()
1217 ValueBound upper = ValueBound(new_array, -right_const); in VisitNewArray()
1219 ValueRange* existing_range = LookupValueRange(left, new_array->GetBlock()); in VisitNewArray()
1223 AssignRange(new_array->GetBlock(), left, range); in VisitNewArray()
Dinstruction_builder.cc2723 HNewArray* new_array = new (allocator_) HNewArray(cls, length, dex_pc); in ProcessDexInstruction() local
2724 AppendInstruction(new_array); in ProcessDexInstruction()
2726 BuildConstructorFenceForAllocation(new_array); in ProcessDexInstruction()
2735 HNewArray* new_array = BuildFilledNewArray(dex_pc, in ProcessDexInstruction() local
2741 BuildConstructorFenceForAllocation(new_array); in ProcessDexInstruction()
2749 HNewArray* new_array = BuildFilledNewArray(dex_pc, in ProcessDexInstruction() local
2755 BuildConstructorFenceForAllocation(new_array); in ProcessDexInstruction()
Dinduction_var_range_test.cc704 HInstruction* new_array = new (GetAllocator()) HNewArray(x_, x_, 0); in TEST_F() local
705 entry_block_->AddInstruction(new_array); in TEST_F()
706 HInstruction* array_length = new (GetAllocator()) HArrayLength(new_array, 0); in TEST_F()
/art/runtime/dex/
Ddex_file_annotations.cc591 Handle<mirror::Array> new_array(hs.NewHandle(mirror::Array::Alloc<true>( in ProcessAnnotationValue() local
594 if (new_array == nullptr) { in ProcessAnnotationValue()
609 new_array->AsObjectArray<mirror::Object>()-> in ProcessAnnotationValue()
614 new_array->AsByteArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
618 new_array->AsShortArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
622 new_array->AsCharArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
626 new_array->AsIntArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
630 new_array->AsLongArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
634 new_array->AsFloatArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
638 new_array->AsDoubleArray()->SetWithoutChecks<kTransactionActive>( in ProcessAnnotationValue()
[all …]
/art/runtime/interpreter/
Dinterpreter_common.cc1465 ObjPtr<mirror::Object> new_array = mirror::Array::Alloc<true>( in DoFilledNewArray() local
1471 if (UNLIKELY(new_array == nullptr)) { in DoFilledNewArray()
1485 new_array->AsIntArray()->SetWithoutChecks<transaction_active>( in DoFilledNewArray()
1488 new_array->AsObjectArray<mirror::Object>()->SetWithoutChecks<transaction_active>( in DoFilledNewArray()
1493 result->SetL(new_array); in DoFilledNewArray()
Dunstarted_runtime.cc1828 mirror::Array* new_array = mirror::ObjectArray<mirror::Object*>::Alloc( in UnstartedJNIArrayCreateObjectArray() local
1830 result->SetL(new_array); in UnstartedJNIArrayCreateObjectArray()
/art/runtime/
Ddebugger.cc1408 mirror::Array* new_array = mirror::Array::Alloc<true>(self, c, length, in CreateArrayObject() local
1411 if (new_array == nullptr) { in CreateArrayObject()
1418 *new_array_id = gRegistry->Add(new_array); in CreateArrayObject()