Home
last modified time | relevance | path

Searched refs:Alloc (Results 1 – 25 of 52) sorted by relevance

123

/art/runtime/mirror/
Darray.cc35 Array* Array::Alloc(Thread* self, Class* array_class, int32_t component_count, in Alloc() function in art::mirror::Array
63 Array* Array::Alloc(Thread* self, Class* array_class, int32_t component_count) { in Alloc() function in art::mirror::Array
65 return Alloc(self, array_class, component_count, array_class->GetComponentSize()); in Alloc()
80 SirtRef<Array> new_array(self, Array::Alloc(self, array_class, array_length)); in RecursiveCreateMultiArray()
146 PrimitiveArray<T>* PrimitiveArray<T>::Alloc(Thread* self, size_t length) { in Alloc() function in art::mirror::PrimitiveArray
148 Array* raw_array = Array::Alloc(self, array_class_, length, sizeof(T)); in Alloc()
Dstring.cc120 String* string = Alloc(self, GetJavaLangString(), utf16_length); in AllocFromUtf16()
150 String* string = Alloc(self, GetJavaLangString(), utf16_length); in AllocFromModifiedUtf8()
161 String* String::Alloc(Thread* self, Class* java_lang_String, int32_t utf16_length) { in Alloc() function in art::mirror::String
162 SirtRef<CharArray> array(self, CharArray::Alloc(self, utf16_length)); in Alloc()
166 return Alloc(self, java_lang_String, array.get()); in Alloc()
169 String* String::Alloc(Thread* self, Class* java_lang_String, CharArray* array) { in Alloc() function in art::mirror::String
Darray.h29 static Array* Alloc(Thread* self, Class* array_class, int32_t component_count)
32 static Array* Alloc(Thread* self, Class* array_class, int32_t component_count,
102 static PrimitiveArray<T>* Alloc(Thread* self, size_t length)
Dobject_array-inl.h32 inline ObjectArray<T>* ObjectArray<T>::Alloc(Thread* self, Class* object_array_class, int32_t lengt… in Alloc() function
33 Array* array = Array::Alloc(self, object_array_class, length, sizeof(Object*)); in Alloc()
137 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length); in CopyOf()
Dstring.h79 static String* Alloc(Thread* self, Class* java_lang_String, int32_t utf16_length)
82 static String* Alloc(Thread* self, Class* java_lang_String, CharArray* array)
Dstack_trace_element.cc40 StackTraceElement* StackTraceElement::Alloc(Thread* self, in Alloc() function in art::mirror::StackTraceElement
Dstack_trace_element.h51 static StackTraceElement* Alloc(Thread* self,
Dobject_array.h28 static ObjectArray<T>* Alloc(Thread* self, Class* object_array_class, int32_t length)
Dobject_test.cc138 SirtRef<Array> a(soa.Self(), Array::Alloc(soa.Self(), c, 1)); in TEST_F()
142 a.reset(Array::Alloc(soa.Self(), c, 1)); in TEST_F()
146 a.reset(Array::Alloc(soa.Self(), c, 1)); in TEST_F()
155 ArrayT* a = ArrayT::Alloc(soa.Self(), 2); in TestPrimitiveArray()
226 SirtRef<IntArray> dims(soa.Self(), IntArray::Alloc(soa.Self(), 1)); in TEST_F()
239 dims.reset(IntArray::Alloc(soa.Self(), 2)); in TEST_F()
291 SirtRef<CharArray> char_array(soa.Self(), CharArray::Alloc(soa.Self(), 0)); in TEST_F()
484 Object* array = ObjectArray<Object>::Alloc(soa.Self(), Object_array_class, 1); in TEST_F()
/art/runtime/
Dclass_linker-inl.h98 return mirror::ObjectArray<T>::Alloc(self, GetClassRoot(kObjectArrayClass), length); in AllocObjectArray()
103 return mirror::ObjectArray<mirror::Class>::Alloc(self, GetClassRoot(kClassArrayClass), length); in AllocClassArray()
108 return mirror::ObjectArray<mirror::String>::Alloc(self, GetClassRoot(kJavaLangStringArrayClass), in AllocStringArray()
114 return mirror::ObjectArray<mirror::ArtMethod>::Alloc(self, in AllocArtMethodArray()
120 … mirror::IfTable::Alloc(self, GetClassRoot(kObjectArrayClass), ifcount * mirror::IfTable::kMax)); in AllocIfTable()
125 return mirror::ObjectArray<mirror::ArtField>::Alloc(self, in AllocArtFieldArray()
Dutils_test.cc99 SirtRef<mirror::ShortArray> a(soa.Self(), mirror::ShortArray::Alloc(soa.Self(), 2)); in TEST_F()
104 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
114 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
123 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
/art/runtime/gc/space/
Dspace_test.cc98 mirror::Object* ptr1 = space->Alloc(self, 1 * MB, &dummy); in TEST_F()
102 mirror::Object* ptr2 = space->Alloc(self, 8 * MB, &dummy); in TEST_F()
112 mirror::Object* ptr4 = space->Alloc(self, 8 * MB, &dummy); in TEST_F()
135 space->Alloc(self, 1U * MB, &dummy); in TEST_F()
142 ptr1 = space->Alloc(self, 1 * MB, &dummy); in TEST_F()
146 ptr2 = space->Alloc(self, 8 * MB, &dummy); in TEST_F()
170 mirror::Object* ptr1 = space->Alloc(self, 1 * MB, &dummy); in TEST_F()
174 mirror::Object* ptr2 = space->Alloc(self, 8 * MB, &dummy); in TEST_F()
184 mirror::Object* ptr4 = space->Alloc(self, 8 * MB, &dummy); in TEST_F()
225 mirror::Object* obj = los->Alloc(Thread::Current(), request_size, &allocation_size); in TEST_F()
[all …]
Dlarge_object_space.h86 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated);
112 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated);
/art/compiler/dex/
Dgrowable_array.h70 return arena->Alloc(sizeof(GrowableArray::Iterator), ArenaAllocator::kAllocGrowableArray); in new()
84 elem_list_ = static_cast<T*>(arena_->Alloc(sizeof(T) * init_length, in arena_()
98 T* new_array = static_cast<T*>(arena_->Alloc(sizeof(T) * target_length, in Resize()
156 return arena->Alloc(sizeof(GrowableArray<T>), ArenaAllocator::kAllocGrowableArray); in new()
Darena_bit_vector.h70 return arena->Alloc(sizeof(ArenaBitVector::Iterator), in new()
87 return arena->Alloc(sizeof(ArenaBitVector), ArenaAllocator::kAllocGrowableBitMap); in new()
Darena_bit_vector.cc38 storage_(static_cast<uint32_t*>(arena_->Alloc(storage_size_ * sizeof(uint32_t), in ArenaBitVector()
71 static_cast<uint32_t*>(arena_->Alloc(new_size * sizeof(uint32_t), in SetBit()
Dmir_dataflow.cc957 mir->ssa_rep->uses = static_cast<int*>(arena_->Alloc(sizeof(int) * num_uses, in DataFlowSSAFormat35C()
960 mir->ssa_rep->fp_use = static_cast<bool*>(arena_->Alloc(sizeof(bool) * num_uses, in DataFlowSSAFormat35C()
975 mir->ssa_rep->uses = static_cast<int*>(arena_->Alloc(sizeof(int) * num_uses, in DataFlowSSAFormat3RC()
978 mir->ssa_rep->fp_use = static_cast<bool*>(arena_->Alloc(sizeof(bool) * num_uses, in DataFlowSSAFormat3RC()
994 static_cast<struct SSARepresentation *>(arena_->Alloc(sizeof(SSARepresentation), in DoSSAConversion()
1044 mir->ssa_rep->uses = static_cast<int*>(arena_->Alloc(sizeof(int) * num_uses, in DoSSAConversion()
1046 mir->ssa_rep->fp_use = static_cast<bool*>(arena_->Alloc(sizeof(bool) * num_uses, in DoSSAConversion()
1061 mir->ssa_rep->defs = static_cast<int*>(arena_->Alloc(sizeof(int) * num_defs, in DoSSAConversion()
1063 mir->ssa_rep->fp_def = static_cast<bool*>(arena_->Alloc(sizeof(bool) * num_defs, in DoSSAConversion()
1112 static_cast<int*>(arena_->Alloc(sizeof(int) * cu_->num_dalvik_registers, in DoSSAConversion()
[all …]
Dssa_transformation.cc139 (arena_->Alloc(sizeof(ArenaBitVector *) * num_registers, in ComputeDefBlockMatrix()
387 i_dom_list_ = static_cast<int*>(arena_->Alloc(sizeof(int) * num_reachable_blocks, in ComputeDominators()
567 static_cast<MIR*>(arena_->Alloc(sizeof(MIR), ArenaAllocator::kAllocDFInfo)); in InsertPhiNodes()
613 static_cast<int*>(arena_->Alloc(sizeof(int) * num_uses, ArenaAllocator::kAllocDFInfo)); in InsertPhiNodeOperands()
615 static_cast<bool*>(arena_->Alloc(sizeof(bool) * num_uses, ArenaAllocator::kAllocDFInfo)); in InsertPhiNodeOperands()
617 static_cast<int*>(arena_->Alloc(sizeof(int) * num_uses, ArenaAllocator::kAllocDFInfo)); in InsertPhiNodeOperands()
644 static_cast<int*>(arena_->Alloc(map_size, ArenaAllocator::kAllocDalvikToSSAMap)); in DoDFSPreOrderSSARename()
Dmir_graph.cc402 static_cast<SuccessorBlockInfo*>(arena_->Alloc(sizeof(SuccessorBlockInfo), in ProcessCanSwitch()
447 (arena_->Alloc(sizeof(SuccessorBlockInfo), ArenaAllocator::kAllocSuccessor)); in ProcessCanThrow()
493 MIR* new_insn = static_cast<MIR*>(arena_->Alloc(sizeof(MIR), ArenaAllocator::kAllocMIR)); in ProcessCanThrow()
574 static_cast<bool*>(arena_->Alloc(sizeof(bool) * num_patterns, ArenaAllocator::kAllocMisc)); in InlineMethod()
579 MIR *insn = static_cast<MIR *>(arena_->Alloc(sizeof(MIR), ArenaAllocator::kAllocMIR)); in InlineMethod()
1004 ret = static_cast<char*>(arena_->Alloc(length, ArenaAllocator::kAllocDFInfo)); in GetDalvikDisassembly()
1117 CallInfo* info = static_cast<CallInfo*>(arena_->Alloc(sizeof(CallInfo), in NewMemCallInfo()
1129 (arena_->Alloc(sizeof(RegLocation) * info->num_arg_words, ArenaAllocator::kAllocMisc)); in NewMemCallInfo()
1143 BasicBlock* bb = static_cast<BasicBlock*>(arena_->Alloc(sizeof(BasicBlock), in NewMemBB()
Darena_allocator.h105 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() function
/art/compiler/dex/quick/mips/
Dcall_mips.cc70 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), ArenaAllocator::kAllocData)); in GenSparseSwitch()
75 static_cast<LIR**>(arena_->Alloc(elements * sizeof(LIR*), ArenaAllocator::kAllocLIR)); in GenSparseSwitch()
149 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), ArenaAllocator::kAllocData)); in GenPackedSwitch()
153 tab_rec->targets = static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), in GenPackedSwitch()
229 reinterpret_cast<FillArrayData*>(arena_->Alloc(sizeof(FillArrayData), in GenFillArrayData()
/art/compiler/dex/quick/x86/
Dcall_x86.cc77 static_cast<SwitchTable *>(arena_->Alloc(sizeof(SwitchTable), ArenaAllocator::kAllocData)); in GenPackedSwitch()
81 tab_rec->targets = static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), in GenPackedSwitch()
133 static_cast<FillArrayData*>(arena_->Alloc(sizeof(FillArrayData), ArenaAllocator::kAllocData)); in GenFillArrayData()
/art/runtime/gc/
Dheap_test.cc49 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), c, 2048)); in TEST_F()
/art/compiler/dex/quick/arm/
Dcall_arm.cc319 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), ArenaAllocator::kAllocData)); in GenSparseSwitch()
323 tab_rec->targets = static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), in GenSparseSwitch()
367 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), ArenaAllocator::kAllocData)); in GenPackedSwitch()
372 static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), ArenaAllocator::kAllocLIR)); in GenPackedSwitch()
420 static_cast<FillArrayData*>(arena_->Alloc(sizeof(FillArrayData), ArenaAllocator::kAllocData)); in GenFillArrayData()
/art/runtime/native/
Djava_lang_reflect_Array.cc61 mirror::Array* new_array = mirror::Array::Alloc(soa.Self(), array_class, length); in Array_createObjectArray()

123