/art/compiler/optimizing/ |
D | graph_test.cc | 28 static HBasicBlock* createIfBlock(HGraph* graph, ArenaAllocator* allocator) { in createIfBlock() argument 29 HBasicBlock* if_block = new (allocator) HBasicBlock(graph); in createIfBlock() 31 HInstruction* instr = new (allocator) HIntConstant(4); in createIfBlock() 33 HInstruction* equal = new (allocator) HEqual(instr, instr); in createIfBlock() 35 instr = new (allocator) HIf(equal); in createIfBlock() 40 static HBasicBlock* createGotoBlock(HGraph* graph, ArenaAllocator* allocator) { in createGotoBlock() argument 41 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createGotoBlock() 43 HInstruction* got = new (allocator) HGoto(); in createGotoBlock() 48 static HBasicBlock* createReturnBlock(HGraph* graph, ArenaAllocator* allocator) { in createReturnBlock() argument 49 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createReturnBlock() [all …]
|
D | parallel_move_test.cc | 27 explicit TestParallelMoveResolver(ArenaAllocator* allocator) : ParallelMoveResolver(allocator) {} in TestParallelMoveResolver() argument 67 static HParallelMove* BuildParallelMove(ArenaAllocator* allocator, in BuildParallelMove() argument 70 HParallelMove* moves = new (allocator) HParallelMove(allocator); in BuildParallelMove() 72 moves->AddMove(new (allocator) MoveOperands( in BuildParallelMove() 81 ArenaAllocator allocator(&pool); in TEST() local 84 TestParallelMoveResolver resolver(&allocator); in TEST() 86 resolver.EmitNativeCode(BuildParallelMove(&allocator, moves, arraysize(moves))); in TEST() 91 TestParallelMoveResolver resolver(&allocator); in TEST() 93 resolver.EmitNativeCode(BuildParallelMove(&allocator, moves, arraysize(moves))); in TEST() 100 ArenaAllocator allocator(&pool); in TEST() local [all …]
|
D | register_allocator_test.cc | 36 ArenaAllocator allocator(&pool); in Check() local 37 HGraphBuilder builder(&allocator); in Check() 43 CodeGenerator* codegen = CodeGenerator::Create(&allocator, graph, kX86); in Check() 46 RegisterAllocator register_allocator(&allocator, codegen, liveness); in Check() 57 ArenaAllocator allocator(&pool); in TEST() local 58 HGraph* graph = new (&allocator) HGraph(&allocator); in TEST() 59 CodeGenerator* codegen = CodeGenerator::Create(&allocator, graph, kX86); in TEST() 60 GrowableArray<LiveInterval*> intervals(&allocator, 0); in TEST() 65 intervals.Add(BuildInterval(ranges, arraysize(ranges), &allocator, 0)); in TEST() 66 intervals.Add(BuildInterval(ranges, arraysize(ranges), &allocator, 1)); in TEST() [all …]
|
D | live_interval_test.cc | 27 ArenaAllocator allocator(&pool); in TEST() local 31 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST() 37 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST() 44 ArenaAllocator allocator(&pool); in TEST() local 48 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST() 58 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST() 72 ArenaAllocator allocator(&pool); in TEST() local 76 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST() 86 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST() 100 ArenaAllocator allocator(&pool); in TEST() local [all …]
|
D | live_ranges_test.cc | 30 static HGraph* BuildGraph(const uint16_t* data, ArenaAllocator* allocator) { in BuildGraph() argument 31 HGraphBuilder builder(allocator); in BuildGraph() 58 ArenaAllocator allocator(&pool); in TEST() local 59 HGraph* graph = BuildGraph(data, &allocator); in TEST() 61 CodeGenerator* codegen = CodeGenerator::Create(&allocator, graph, InstructionSet::kX86); in TEST() 105 ArenaAllocator allocator(&pool); in TEST() local 106 HGraph* graph = BuildGraph(data, &allocator); in TEST() 107 CodeGenerator* codegen = CodeGenerator::Create(&allocator, graph, InstructionSet::kX86); in TEST() 154 ArenaAllocator allocator(&pool); in TEST() local 155 HGraph* graph = BuildGraph(data, &allocator); in TEST() [all …]
|
D | codegen_test.cc | 51 static void Run(const InternalCodeAllocator& allocator, in Run() argument 56 CommonCompilerTest::MakeExecutable(allocator.GetMemory(), allocator.GetSize()); in Run() 57 fptr f = reinterpret_cast<fptr>(allocator.GetMemory()); in Run() 76 InternalCodeAllocator allocator; in TestCode() local 81 codegen->CompileBaseline(&allocator, true); in TestCode() 83 Run(allocator, *codegen, has_result, expected); in TestCode() 87 codegen->CompileBaseline(&allocator, true); in TestCode() 89 Run(allocator, *codegen, has_result, expected); in TestCode() 93 codegen->CompileBaseline(&allocator, true); in TestCode() 95 Run(allocator, *codegen, has_result, expected); in TestCode()
|
D | optimizing_unit_test.h | 41 ArenaAllocator* allocator, 43 LiveInterval* interval = new (allocator) LiveInterval(allocator, Primitive::kPrimInt);
|
D | optimizing_compiler.cc | 128 CodeVectorAllocator allocator; in TryCompile() local 147 codegen->CompileOptimized(&allocator); in TryCompile() 151 codegen->CompileBaseline(&allocator); in TryCompile() 172 ArrayRef<const uint8_t>(allocator.GetMemory()), in TryCompile()
|
D | linearize_test.cc | 38 ArenaAllocator allocator(&pool); in TestCode() local 39 HGraphBuilder builder(&allocator); in TestCode() 48 CodeGenerator* codegen = CodeGenerator::Create(&allocator, graph, InstructionSet::kX86); in TestCode()
|
D | parallel_move_resolver.h | 36 explicit ParallelMoveResolver(ArenaAllocator* allocator) : moves_(allocator, 32) {} in ParallelMoveResolver() argument
|
D | code_generator.cc | 33 void CodeGenerator::CompileBaseline(CodeAllocator* allocator, bool is_leaf) { in CompileBaseline() argument 64 uint8_t* buffer = allocator->Allocate(code_size); in CompileBaseline() 69 void CodeGenerator::CompileOptimized(CodeAllocator* allocator) { in CompileOptimized() argument 90 uint8_t* buffer = allocator->Allocate(code_size); in CompileOptimized() 254 CodeGenerator* CodeGenerator::Create(ArenaAllocator* allocator, in Create() argument 260 return new (allocator) arm::CodeGeneratorARM(graph); in Create() 265 return new (allocator) x86::CodeGeneratorX86(graph); in Create() 268 return new (allocator) x86_64::CodeGeneratorX86_64(graph); in Create()
|
D | ssa_liveness_analysis.h | 28 BlockInfo(ArenaAllocator* allocator, const HBasicBlock& block, size_t number_of_ssa_values) in BlockInfo() argument 30 live_in_(allocator, number_of_ssa_values, false), in BlockInfo() 31 live_out_(allocator, number_of_ssa_values, false), in BlockInfo() 32 kill_(allocator, number_of_ssa_values, false) { in BlockInfo() 136 LiveInterval(ArenaAllocator* allocator, Primitive::Type type, HInstruction* defined_by = nullptr) 137 : allocator_(allocator), in allocator_() argument 149 static LiveInterval* MakeFixedInterval(ArenaAllocator* allocator, int reg, Primitive::Type type) { in MakeFixedInterval() argument 150 LiveInterval* interval = new (allocator) LiveInterval(allocator, type); in MakeFixedInterval()
|
D | stack_map_stream.h | 34 explicit StackMapStream(ArenaAllocator* allocator) in StackMapStream() argument 35 : stack_maps_(allocator, 10), in StackMapStream() 36 dex_register_maps_(allocator, 10 * 4), in StackMapStream() 37 inline_infos_(allocator, 2), in StackMapStream()
|
D | code_generator.h | 73 void CompileBaseline(CodeAllocator* allocator, bool is_leaf = false); 74 void CompileOptimized(CodeAllocator* allocator); 75 static CodeGenerator* Create(ArenaAllocator* allocator,
|
/art/compiler/dex/ |
D | global_value_numbering.cc | 23 GlobalValueNumbering::GlobalValueNumbering(CompilationUnit* cu, ScopedArenaAllocator* allocator) in GlobalValueNumbering() argument 26 allocator_(allocator), in GlobalValueNumbering() 31 global_value_map_(std::less<uint64_t>(), allocator->Adapter()), in GlobalValueNumbering() 32 field_index_map_(FieldReferenceComparator(), allocator->Adapter()), in GlobalValueNumbering() 33 field_index_reverse_map_(allocator->Adapter()), in GlobalValueNumbering() 34 array_location_map_(ArrayLocationComparator(), allocator->Adapter()), in GlobalValueNumbering() 35 array_location_reverse_map_(allocator->Adapter()), in GlobalValueNumbering() 36 ref_set_map_(std::less<ValueNameSet>(), allocator->Adapter()), in GlobalValueNumbering() 37 lvns_(mir_graph_->GetNumBlocks(), nullptr, allocator->Adapter()), in GlobalValueNumbering() 39 merge_lvns_(allocator->Adapter()) { in GlobalValueNumbering() [all …]
|
D | global_value_numbering.h | 31 GlobalValueNumbering(CompilationUnit* cu, ScopedArenaAllocator* allocator); 36 ScopedArenaAllocator* allocator = nullptr); 58 static void* operator new(size_t size, ScopedArenaAllocator* allocator) { in new() argument 59 return allocator->Alloc(sizeof(GlobalValueNumbering), kArenaAllocMisc); in new()
|
/art/runtime/base/ |
D | allocator.h | 94 class TrackingAllocatorImpl : public std::allocator<T> { 96 typedef typename std::allocator<T>::value_type value_type; 97 typedef typename std::allocator<T>::size_type size_type; 98 typedef typename std::allocator<T>::difference_type difference_type; 99 typedef typename std::allocator<T>::pointer pointer; 100 typedef typename std::allocator<T>::const_pointer const_pointer; 101 typedef typename std::allocator<T>::reference reference; 102 typedef typename std::allocator<T>::const_reference const_reference; 144 std::allocator<T>>::type {
|
/art/runtime/gc/space/ |
D | rosalloc_space.cc | 45 art::gc::allocator::RosAlloc* rosalloc, byte* begin, byte* end, in RosAllocSpace() 59 allocator::RosAlloc* rosalloc = CreateRosAlloc(mem_map->Begin(), starting_size, initial_size, in CreateFromMemMap() 125 allocator::RosAlloc* RosAllocSpace::CreateRosAlloc(void* begin, size_t morecore_start, in CreateRosAlloc() 133 allocator::RosAlloc* rosalloc = new art::gc::allocator::RosAlloc( in CreateRosAlloc() 136 art::gc::allocator::RosAlloc::kPageReleaseModeAll : in CreateRosAlloc() 137 art::gc::allocator::RosAlloc::kPageReleaseModeSizeAndEnd); in CreateRosAlloc() 166 …llocSpace* RosAllocSpace::CreateInstance(const std::string& name, MemMap* mem_map, void* allocator, in CreateInstance() argument 169 return new RosAllocSpace(name, mem_map, reinterpret_cast<allocator::RosAlloc*>(allocator), in CreateInstance() 228 extern "C" void* art_heap_rosalloc_morecore(allocator::RosAlloc* rosalloc, intptr_t increment) { in art_heap_rosalloc_morecore() 280 InspectAllRosAlloc(art::gc::allocator::RosAlloc::BytesAllocatedCallback, &bytes_allocated, false); in GetBytesAllocated() [all …]
|
D | rosalloc_space.h | 83 allocator::RosAlloc* GetRosAlloc() const { in GetRosAlloc() 95 MallocSpace* CreateInstance(const std::string& name, MemMap* mem_map, void* allocator, 128 RosAllocSpace(const std::string& name, MemMap* mem_map, allocator::RosAlloc* rosalloc, 141 static allocator::RosAlloc* CreateRosAlloc(void* base, size_t morecore_start, size_t initial_size, 153 allocator::RosAlloc* rosalloc_;
|
/art/runtime/gc/ |
D | heap-inl.h | 40 size_t byte_count, AllocatorType allocator, in AllocObjectWithAllocator() argument 69 if (allocator == kAllocatorTypeTLAB) { in AllocObjectWithAllocator() 73 if (allocator == kAllocatorTypeTLAB && byte_count <= self->TlabSize()) { in AllocObjectWithAllocator() 88 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator() 91 bool is_current_allocator = allocator == GetCurrentAllocator(); in AllocObjectWithAllocator() 92 obj = AllocateInternalWithGc(self, allocator, byte_count, &bytes_allocated, &usable_size, in AllocObjectWithAllocator() 95 bool after_is_current_allocator = allocator == GetCurrentAllocator(); in AllocObjectWithAllocator() 114 if (collector::SemiSpace::kUseRememberedSet && UNLIKELY(allocator == kAllocatorTypeNonMoving)) { in AllocObjectWithAllocator() 147 if (AllocatorHasAllocationStack(allocator)) { in AllocObjectWithAllocator() 161 if (AllocatorMayHaveConcurrentGC(allocator) && IsGcConcurrent()) { in AllocObjectWithAllocator()
|
/art/compiler/utils/ |
D | allocation.h | 28 void* operator new(size_t size, ArenaAllocator* allocator) { in new() argument 29 return allocator->Alloc(size, kArenaAllocMisc); in new()
|
D | scoped_arena_allocator.h | 108 ScopedArenaAllocator* allocator = new(addr) ScopedArenaAllocator(arena_stack); in Create() local 109 allocator->mark_ptr_ = reinterpret_cast<uint8_t*>(addr); in Create() 110 return allocator; in Create()
|
/art/test/405-optimizing-long-allocator/ |
D | info.txt | 1 Tests with long for the optimizing compiler's register allocator.
|
/art/test/404-optimizing-allocator/ |
D | info.txt | 1 Initial tests for testing the optimizing compiler's register allocator.
|
/art/test/074-gc-thrash/ |
D | info.txt | 1 This thrashes the memory allocator and garbage collector for a brief period.
|