Searched refs:ScopedArenaAllocator (Results 1 - 25 of 25) sorted by relevance

/art/runtime/base/
H A Dscoped_arena_allocator.h29 class ScopedArenaAllocator;
34 // Holds a list of Arenas for use by ScopedArenaAllocator stack.
65 // Private - access via ScopedArenaAllocator or ScopedArenaAllocatorAdapter.
93 friend class ScopedArenaAllocator;
100 class ScopedArenaAllocator class in namespace:art
103 // Create a ScopedArenaAllocator directly on the ArenaStack when the scope of
106 static ScopedArenaAllocator* Create(ArenaStack* arena_stack) {
107 void* addr = arena_stack->Alloc(sizeof(ScopedArenaAllocator), kArenaAllocMisc);
108 ScopedArenaAllocator* allocator = new(addr) ScopedArenaAllocator(arena_stac
[all...]
H A Darena_object.h35 static void* operator new(size_t size, ScopedArenaAllocator* arena) {
56 static void* operator new(size_t size, ScopedArenaAllocator* arena) {
H A Dscoped_arena_allocator.cc71 // top_ptr_ shall be updated by ScopedArenaAllocator.
85 // much memory to zero out. Though ScopedArenaAllocator doesn't guarantee the memory is
108 ScopedArenaAllocator::ScopedArenaAllocator(ArenaStack* arena_stack) function in class:art::ScopedArenaAllocator
118 ScopedArenaAllocator::~ScopedArenaAllocator() {
122 void ScopedArenaAllocator::Reset() {
126 arena_stack_->top_ptr_ = mark_ptr_ + RoundUp(sizeof(ScopedArenaAllocator), 8);
130 void ScopedArenaAllocator::DoReset() {
H A Dscoped_arena_containers.h32 // Adapter for use of ScopedArenaAllocator in STL containers.
33 // Use ScopedArenaAllocator::Adapter() to create an adapter to pass to container constructors.
35 // void foo(ScopedArenaAllocator* allocator) {
80 explicit ScopedArenaAllocatorAdapter(ScopedArenaAllocator* arena_allocator,
123 explicit ScopedArenaAllocatorAdapter(ScopedArenaAllocator* arena_allocator,
193 inline ScopedArenaAllocatorAdapter<void> ScopedArenaAllocator::Adapter(ArenaAllocKind kind) {
H A Darena_allocator.h34 class ScopedArenaAllocator;
158 friend class ScopedArenaAllocator;
/art/compiler/utils/
H A Darena_bit_vector.cc49 ArenaBitVector::ArenaBitVector(ScopedArenaAllocator* arena, unsigned int start_bits,
52 new (arena) ArenaBitVectorAllocator<ScopedArenaAllocator>(arena)), kind_(kind) {
H A Darena_bit_vector.h26 class ScopedArenaAllocator;
55 ArenaBitVector(ScopedArenaAllocator* arena, uint32_t start_bits, bool expandable,
/art/compiler/dex/
H A Dglobal_value_numbering.h51 static uint16_t* PrepareGvnFieldIds(ScopedArenaAllocator* allocator,
54 GlobalValueNumbering(CompilationUnit* cu, ScopedArenaAllocator* allocator, Mode mode);
67 ScopedArenaAllocator* allocator = nullptr);
208 ScopedArenaAllocator* Allocator() const {
214 ScopedArenaAllocator* const allocator_;
275 uint16_t* GlobalValueNumbering::PrepareGvnFieldIds(ScopedArenaAllocator* allocator,
H A Dtype_inference.h69 TypeInference(MIRGraph* mir_graph, ScopedArenaAllocator* alloc);
372 CheckCastData(MIRGraph* mir_graph, ScopedArenaAllocator* alloc);
396 ScopedArenaAllocator* const alloc_;
411 ScopedArenaAllocator* alloc);
413 ScopedArenaAllocator* alloc);
415 ScopedArenaAllocator* alloc);
417 ScopedArenaAllocator* alloc);
418 static CheckCastData* InitializeCheckCastData(MIRGraph* mir_graph, ScopedArenaAllocator* alloc);
H A Dgvn_dead_code_elimination.h42 GvnDeadCodeElimination(const GlobalValueNumbering* gvn, ScopedArenaAllocator* alloc);
89 VRegChains(uint32_t num_vregs, ScopedArenaAllocator* alloc);
H A Dglobal_value_numbering.cc25 GlobalValueNumbering::GlobalValueNumbering(CompilationUnit* cu, ScopedArenaAllocator* allocator,
49 ScopedArenaAllocator* allocator) {
H A Dssa_transformation.cc70 ScopedArenaAllocator allocator(&cu_->arena_stack);
177 ScopedArenaAllocator allocator(&cu_->arena_stack);
544 ScopedArenaAllocator allocator(&cu_->arena_stack);
H A Dtype_inference.cc153 TypeInference::CheckCastData::CheckCastData(MIRGraph* mir_graph, ScopedArenaAllocator* alloc)
393 TypeInference::TypeInference(MIRGraph* mir_graph, ScopedArenaAllocator* alloc)
601 ScopedArenaAllocator* alloc) {
618 ScopedArenaAllocator* alloc) {
631 ScopedArenaAllocator* alloc) {
652 ScopedArenaAllocator* alloc) {
666 ScopedArenaAllocator* alloc) {
H A Dmir_optimization.cc477 std::unique_ptr<ScopedArenaAllocator> allocator;
481 allocator.reset(ScopedArenaAllocator::Create(&cu_->arena_stack));
925 temp_scoped_alloc_.reset(ScopedArenaAllocator::Create(&cu_->arena_stack));
1155 temp_scoped_alloc_.reset(ScopedArenaAllocator::Create(&cu_->arena_stack));
1165 // ScopedArenaAllocator.
1184 ScopedArenaAllocator allocator(&cu_->arena_stack);
1367 temp_scoped_alloc_.reset(ScopedArenaAllocator::Create(&cu_->arena_stack));
1398 ScopedArenaAllocator allocator(&cu_->arena_stack); // Reclaim memory after each LVN.
1505 temp_scoped_alloc_.reset(ScopedArenaAllocator::Create(&cu_->arena_stack));
1627 temp_scoped_alloc_.reset(ScopedArenaAllocator
[all...]
H A Dlocal_value_numbering.h39 LocalValueNumbering(GlobalValueNumbering* gvn, BasicBlockId id, ScopedArenaAllocator* allocator);
H A Dmir_analysis.cc1210 ScopedArenaAllocator allocator(&cu_->arena_stack);
1343 ScopedArenaAllocator allocator(&cu_->arena_stack);
H A Dmir_graph.cc720 ScopedArenaAllocator allocator(&cu_->arena_stack);
1805 temp_scoped_alloc_.reset(ScopedArenaAllocator::Create(&cu_->arena_stack));
1860 const ScopedArenaVector<size_t>* visited_cnt_values, ScopedArenaAllocator* allocator,
1936 ScopedArenaAllocator allocator(&cu_->arena_stack);
H A Dgvn_dead_code_elimination.cc74 GvnDeadCodeElimination::VRegChains::VRegChains(uint32_t num_vregs, ScopedArenaAllocator* alloc)
446 ScopedArenaAllocator* alloc)
H A Dlocal_value_numbering_test.cc220 allocator_.reset(ScopedArenaAllocator::Create(&cu_.arena_stack));
236 std::unique_ptr<ScopedArenaAllocator> allocator_;
H A Dmir_graph.h1393 std::unique_ptr<ScopedArenaAllocator> temp_scoped_alloc_;
H A Dglobal_value_numbering_test.cc370 allocator_.reset(ScopedArenaAllocator::Create(&cu_.arena_stack));
396 std::unique_ptr<ScopedArenaAllocator> allocator_;
H A Dgvn_dead_code_elimination_test.cc479 allocator_.reset(ScopedArenaAllocator::Create(&cu_.arena_stack));
507 std::unique_ptr<ScopedArenaAllocator> allocator_;
H A Dtype_inference_test.cc508 allocator_.reset(ScopedArenaAllocator::Create(&cu_.arena_stack));
616 std::unique_ptr<ScopedArenaAllocator> allocator_;
H A Dlocal_value_numbering.cc325 ScopedArenaAllocator* allocator)
/art/runtime/
H A Dclass_linker.cc4791 ScopedArenaAllocator allocator(&stack);

Completed in 1687 milliseconds