Home
last modified time | relevance | path

Searched refs:allocator_ (Results 1 – 25 of 63) sorted by relevance

123

/art/runtime/
Dlinear_alloc.cc23 LinearAlloc::LinearAlloc(ArenaPool* pool) : lock_("linear alloc"), allocator_(pool) { in LinearAlloc()
28 return allocator_.Realloc(ptr, old_size, new_size); in Realloc()
33 return allocator_.Alloc(size); in Alloc()
38 return allocator_.AllocAlign16(size); in AllocAlign16()
43 return allocator_.BytesUsed(); in GetUsedMemory()
48 return allocator_.GetArenaPool(); in GetArenaPool()
53 return allocator_.Contains(ptr); in Contains()
57 return allocator_.Contains(ptr); in ContainsUnsafe()
/art/runtime/base/
Darena_containers.h143 allocator_(allocator) { in ArenaAllocatorAdapterKind()
148 allocator_(other.allocator_) { in ArenaAllocatorAdapter()
155 ArenaAllocator* allocator_;
179 allocator_(allocator) { in ArenaAllocatorAdapter()
184 allocator_(other.allocator_) { in ArenaAllocatorAdapter()
200 return allocator_->AllocArray<T>(n, ArenaAllocatorAdapterKind::Kind());
203 allocator_->MakeInaccessible(p, sizeof(T) * n); in deallocate()
216 ArenaAllocator* allocator_;
229 return lhs.allocator_ == rhs.allocator_;
Darena_bit_vector.cc66 return allocator_->Alloc(size, this->Kind()); in Alloc()
73 : ArenaBitVectorAllocatorKind(kind), allocator_(allocator) { } in ArenaBitVectorAllocator()
75 ArenaAlloc* const allocator_; member in art::FINAL
/art/compiler/utils/
Dassembler.cc29 : allocator_(allocator) { in AssemblerBuffer()
31 contents_ = allocator_->AllocArray<uint8_t>(kInitialBufferCapacity, kArenaAllocAssembler); in AssemblerBuffer()
48 if (allocator_->IsRunningOnMemoryTool()) { in ~AssemblerBuffer()
49 allocator_->MakeInaccessible(contents_, Capacity()); in ~AssemblerBuffer()
84 allocator_->Realloc(contents_, old_capacity, new_capacity, kArenaAllocAssembler)); in ExtendCapacity()
Djni_macro_assembler_test.h61 allocator_.reset(new ArenaAllocator(&pool_)); in SetUp()
62 assembler_.reset(CreateAssembler(allocator_.get())); in SetUp()
79 allocator_.reset(); in TearDown()
143 std::unique_ptr<ArenaAllocator> allocator_; variable
/art/compiler/optimizing/
Dgvn.cc41 : allocator_(allocator), in ValueSet()
55 : allocator_(allocator), in ValueSet()
95 buckets_[index] = new (allocator_) Node(instruction, hash_code, buckets_[index]); in Add()
180 buckets_[new_index] = node->Dup(allocator_, buckets_[new_index]); in PopulateFromInternal()
221 clone_current = node->Dup(allocator_, nullptr); in CloneBucket()
320 ScopedArenaAllocator* const allocator_; member in art::ValueSet
347 allocator_(graph->GetArenaStack()), in GlobalValueNumberer()
349 sets_(graph->GetBlocks().size(), nullptr, allocator_.Adapter(kArenaAllocGvn)), in GlobalValueNumberer()
351 &allocator_, graph->GetBlocks().size(), /* expandable */ false, kArenaAllocGvn) { in GlobalValueNumberer()
363 ScopedArenaAllocator allocator_; member in art::GlobalValueNumberer
[all …]
Dinstruction_builder.cc56 : allocator_(graph->GetAllocator()), in HInstructionBuilder()
109 HPhi* phi = new (allocator_) HPhi( in GetLocalsForWithAllocation()
110 allocator_, in GetLocalsForWithAllocation()
159 HPhi* phi = new (allocator_) HPhi( in InitializeBlockLocals()
160 allocator_, in InitializeBlockLocals()
198 HPhi* phi = new (allocator_) HPhi( in InitializeBlockLocals()
199 allocator_, in InitializeBlockLocals()
260 HEnvironment* environment = new (allocator_) HEnvironment( in InitializeInstruction()
261 allocator_, in InitializeInstruction()
277 HNullCheck* null_check = new (allocator_) HNullCheck(ref, dex_pc); in LoadNullCheckedLocal()
[all …]
Dbounds_check_elimination.cc292 : allocator_(allocator), lower_(lower), upper_(upper) {} in ValueRange()
301 ScopedArenaAllocator* GetAllocator() const { return allocator_; } in GetAllocator()
329 return new (allocator_) ValueRange( in Narrow()
330 allocator_, in Narrow()
350 return new (allocator_) ValueRange(allocator_, lower, upper); in Add()
354 ScopedArenaAllocator* const allocator_; member in art::ValueRange
514 allocator_(graph->GetArenaStack()), in BCEVisitor()
518 allocator_.Adapter(kArenaAllocBoundsCheckElimination)), in BCEVisitor()
519 allocator_.Adapter(kArenaAllocBoundsCheckElimination)), in BCEVisitor()
521 allocator_.Adapter(kArenaAllocBoundsCheckElimination)), in BCEVisitor()
[all …]
Dintrinsics_mips64.cc38 : codegen_(codegen), allocator_(codegen->GetGraph()->GetAllocator()) { in IntrinsicLocationsBuilderMIPS64()
164 CreateFPToIntLocations(allocator_, invoke); in VisitDoubleDoubleToRawLongBits()
173 CreateFPToIntLocations(allocator_, invoke); in VisitFloatFloatToRawIntBits()
200 CreateIntToFPLocations(allocator_, invoke); in VisitDoubleLongBitsToDouble()
209 CreateIntToFPLocations(allocator_, invoke); in VisitFloatIntBitsToFloat()
250 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerReverseBytes()
259 CreateIntToIntLocations(allocator_, invoke); in VisitLongReverseBytes()
268 CreateIntToIntLocations(allocator_, invoke); in VisitShortReverseBytes()
290 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerNumberOfLeadingZeros()
299 CreateIntToIntLocations(allocator_, invoke); in VisitLongNumberOfLeadingZeros()
[all …]
Dblock_builder.cc31 : allocator_(graph->GetAllocator()), in HBasicBlockBuilder()
55 block = new (allocator_) HBasicBlock(graph_, semantic_dex_pc); in MaybeCreateBlockAt()
331 HBasicBlock* new_catch_block = new (allocator_) HBasicBlock(graph_, address); in InsertTryBoundaryBlocks()
332 new_catch_block->AddInstruction(new (allocator_) HGoto(address)); in InsertTryBoundaryBlocks()
340 new (allocator_) TryCatchInformation(iterator.GetHandlerTypeIndex(), *dex_file_)); in InsertTryBoundaryBlocks()
357 HTryBoundary* try_entry = new (allocator_) HTryBoundary( in InsertTryBoundaryBlocks()
386 new (allocator_) HTryBoundary(HTryBoundary::BoundaryKind::kExit, successor->GetDexPc()); in InsertTryBoundaryBlocks()
397 graph_->SetEntryBlock(new (allocator_) HBasicBlock(graph_, kNoDexPc)); in Build()
398 graph_->SetExitBlock(new (allocator_) HBasicBlock(graph_, kNoDexPc)); in Build()
416 HBasicBlock* entry_block = new (allocator_) HBasicBlock(graph_, kNoDexPc); in BuildIntrinsic()
[all …]
Dintrinsics_x86_64.cc44 : allocator_(codegen->GetGraph()->GetAllocator()), codegen_(codegen) { in IntrinsicLocationsBuilderX86_64()
158 CreateFPToIntLocations(allocator_, invoke); in VisitDoubleDoubleToRawLongBits()
161 CreateIntToFPLocations(allocator_, invoke); in VisitDoubleLongBitsToDouble()
172 CreateFPToIntLocations(allocator_, invoke); in VisitFloatFloatToRawIntBits()
175 CreateIntToFPLocations(allocator_, invoke); in VisitFloatIntBitsToFloat()
216 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerReverseBytes()
224 CreateIntToIntLocations(allocator_, invoke); in VisitLongReverseBytes()
232 CreateIntToIntLocations(allocator_, invoke); in VisitShortReverseBytes()
274 CreateFloatToFloatPlusTemps(allocator_, invoke); in VisitMathAbsDouble()
282 CreateFloatToFloatPlusTemps(allocator_, invoke); in VisitMathAbsFloat()
[all …]
Dintrinsics_arm64.cc268 CreateFPToIntLocations(allocator_, invoke); in VisitDoubleDoubleToRawLongBits()
271 CreateIntToFPLocations(allocator_, invoke); in VisitDoubleLongBitsToDouble()
282 CreateFPToIntLocations(allocator_, invoke); in VisitFloatFloatToRawIntBits()
285 CreateIntToFPLocations(allocator_, invoke); in VisitFloatIntBitsToFloat()
324 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerReverseBytes()
332 CreateIntToIntLocations(allocator_, invoke); in VisitLongReverseBytes()
340 CreateIntToIntLocations(allocator_, invoke); in VisitShortReverseBytes()
367 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerNumberOfLeadingZeros()
375 CreateIntToIntLocations(allocator_, invoke); in VisitLongNumberOfLeadingZeros()
395 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerNumberOfTrailingZeros()
[all …]
Dssa_liveness_analysis.h292 UsePosition* new_use = new (allocator_) UsePosition(instruction, temp_index, position); in AddTempUse()
343 UsePosition* new_use = new (allocator_) UsePosition(instruction, input_index, position);
354 new (allocator_) EnvUsePosition(environment, input_index, position);
358 UsePosition* new_use = new (allocator_) UsePosition(instruction, input_index, position);
372 new (allocator_) LiveRange(start_block_position, position, nullptr);
388 new (allocator_) LiveRange(start_block_position, position, first_range_);
398 new (allocator_) UsePosition(instruction, input_index, block->GetLifetimeEnd()); in AddPhiUse()
405 new (allocator_) LiveRange(start, end, first_range_); in AddRange()
414 first_range_ = range_search_start_ = new (allocator_) LiveRange(start, end, first_range_); in AddRange()
432 new (allocator_) LiveRange(start, end, nullptr); in AddLoopRange()
[all …]
Dscheduler.h256 allocator_(allocator), in SchedulingGraph()
258 nodes_map_(allocator_->Adapter(kArenaAllocScheduler)), in SchedulingGraph()
263 new (allocator_) SchedulingNode(instr, allocator_, is_scheduling_barrier));
326 ScopedArenaAllocator* const allocator_; variable
440 : allocator_(allocator), in HScheduler()
446 candidates_(allocator_->Adapter(kArenaAllocScheduler)) {} in HScheduler()
479 ScopedArenaAllocator* const allocator_; variable
Dintrinsics_mips.cc38 : codegen_(codegen), allocator_(codegen->GetGraph()->GetAllocator()) { in IntrinsicLocationsBuilderMIPS()
180 CreateFPToIntLocations(allocator_, invoke); in VisitDoubleDoubleToRawLongBits()
189 CreateFPToIntLocations(allocator_, invoke); in VisitFloatFloatToRawIntBits()
221 CreateIntToFPLocations(allocator_, invoke); in VisitDoubleLongBitsToDouble()
230 CreateIntToFPLocations(allocator_, invoke); in VisitFloatIntBitsToFloat()
402 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerReverseBytes()
416 CreateIntToIntLocations(allocator_, invoke); in VisitLongReverseBytes()
430 CreateIntToIntLocations(allocator_, invoke); in VisitShortReverseBytes()
474 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerNumberOfLeadingZeros()
483 CreateIntToIntLocations(allocator_, invoke); in VisitLongNumberOfLeadingZeros()
[all …]
Dintrinsics_arm_vixl.cc249 : allocator_(codegen->GetGraph()->GetAllocator()), in IntrinsicLocationsBuilderARMVIXL()
298 CreateFPToIntLocations(allocator_, invoke); in VisitDoubleDoubleToRawLongBits()
301 CreateIntToFPLocations(allocator_, invoke); in VisitDoubleLongBitsToDouble()
312 CreateFPToIntLocations(allocator_, invoke); in VisitFloatFloatToRawIntBits()
315 CreateIntToFPLocations(allocator_, invoke); in VisitFloatIntBitsToFloat()
374 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerNumberOfLeadingZeros()
382 CreateLongToLongLocationsWithOverlap(allocator_, invoke); in VisitLongNumberOfLeadingZeros()
420 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerNumberOfTrailingZeros()
428 CreateLongToLongLocationsWithOverlap(allocator_, invoke); in VisitLongNumberOfTrailingZeros()
440 CreateFPToFPLocations(allocator_, invoke); in VisitMathAbsDouble()
[all …]
Dintrinsics_x86.cc49 : allocator_(codegen->GetGraph()->GetAllocator()), in IntrinsicLocationsBuilderX86()
231 CreateFPToIntLocations(allocator_, invoke, /* is64bit */ true); in VisitDoubleDoubleToRawLongBits()
234 CreateIntToFPLocations(allocator_, invoke, /* is64bit */ true); in VisitDoubleLongBitsToDouble()
245 CreateFPToIntLocations(allocator_, invoke, /* is64bit */ false); in VisitFloatFloatToRawIntBits()
248 CreateIntToFPLocations(allocator_, invoke, /* is64bit */ false); in VisitFloatIntBitsToFloat()
300 CreateIntToIntLocations(allocator_, invoke); in VisitIntegerReverseBytes()
308 CreateLongToLongLocations(allocator_, invoke); in VisitLongReverseBytes()
329 CreateIntToIntLocations(allocator_, invoke); in VisitShortReverseBytes()
398 CreateFloatToFloat(allocator_, invoke); in VisitMathAbsDouble()
406 CreateFloatToFloat(allocator_, invoke); in VisitMathAbsFloat()
[all …]
Dgraph_checker.h36 allocator_(graph->GetArenaStack()), in HGraphDelegateVisitor()
37 seen_ids_(&allocator_, graph->GetCurrentInstructionId(), false, kArenaAllocGraphChecker) { in HGraphDelegateVisitor()
108 ScopedArenaAllocator allocator_; variable
Dintrinsics_arm64.h43 : allocator_(allocator), codegen_(codegen) {} in IntrinsicLocationsBuilderARM64()
60 ArenaAllocator* const allocator_;
Dregister_allocation_resolver.cc28 : allocator_(codegen->GetGraph()->GetAllocator()), in RegisterAllocationResolver()
538 move = new (allocator_) HParallelMove(allocator_); in AddInputMoveFor()
586 move = new (allocator_) HParallelMove(allocator_); in InsertParallelMoveAt()
601 move = new (allocator_) HParallelMove(allocator_); in InsertParallelMoveAt()
617 move = new (allocator_) HParallelMove(allocator_); in InsertParallelMoveAt()
649 move = new (allocator_) HParallelMove(allocator_); in InsertParallelMoveAtExitOf()
671 move = new (allocator_) HParallelMove(allocator_); in InsertParallelMoveAtEntryOf()
695 move = new (allocator_) HParallelMove(allocator_); in InsertMoveAfter()
Dparallel_move_resolver.h129 allocator_(allocator) { in ParallelMoveResolverNoSwap()
197 ArenaAllocator* const allocator_; variable
/art/runtime/verifier/
Dreg_type_cache.cc173 char* ptr = allocator_.AllocArray<char>(string_piece.length()); in AddString()
207 new (&allocator_) PreciseReferenceType(klass, AddString(sp_descriptor), entries_.size()); in From()
209 entry = new (&allocator_) ReferenceType(klass, AddString(sp_descriptor), entries_.size()); in From()
223 new (&allocator_) UnresolvedReferenceType(AddString(sp_descriptor), entries_.size())); in From()
234 return AddEntry(new (&allocator_) UnresolvedReferenceType(AddString("a"), entries_.size())); in MakeUnresolvedReference()
263 new (&allocator_) PreciseReferenceType(klass, descriptor, entries_.size())) in InsertClass()
264 : new (&allocator_) ReferenceType(klass, descriptor, entries_.size()); in InsertClass()
281 allocator_(allocator) { in RegTypeCache()
383 ArenaBitVector types(&allocator_, in FromUnresolvedMerge()
463 return AddEntry(new (&allocator_) UnresolvedMergedType(resolved_parts_merged, in FromUnresolvedMerge()
[all …]
/art/runtime/mirror/
Dclass_loader.h59 GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); in GetAllocator()
63 SetField64<false>(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), in SetAllocator()
84 uint64_t allocator_; variable
/art/libartbase/base/
Dbit_vector.cc33 allocator_(allocator), in BitVector()
63 allocator_->Free(storage_); in ~BitVector()
356 static_cast<uint32_t*>(allocator_->Alloc(new_size * kWordBytes)); in EnsureSize()
363 allocator_->Free(storage_); in EnsureSize()
372 return allocator_; in GetAllocator()
Dbit_vector.h110 allocator_(other.allocator_), in BitVector()
289 Allocator* const allocator_; // Allocator if expandable. variable

123