Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 64) sorted by relevance

123

/art/compiler/optimizing/
Dgraph_test.cc28 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 …]
Dparallel_move_test.cc27 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 …]
Dregister_allocator_test.cc36 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 …]
Dlive_interval_test.cc27 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 …]
Dlive_ranges_test.cc30 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 …]
Dcodegen_test.cc51 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()
Doptimizing_unit_test.h41 ArenaAllocator* allocator,
43 LiveInterval* interval = new (allocator) LiveInterval(allocator, Primitive::kPrimInt);
Doptimizing_compiler.cc128 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()
Dlinearize_test.cc38 ArenaAllocator allocator(&pool); in TestCode() local
39 HGraphBuilder builder(&allocator); in TestCode()
48 CodeGenerator* codegen = CodeGenerator::Create(&allocator, graph, InstructionSet::kX86); in TestCode()
Dparallel_move_resolver.h36 explicit ParallelMoveResolver(ArenaAllocator* allocator) : moves_(allocator, 32) {} in ParallelMoveResolver() argument
Dcode_generator.cc33 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()
Dssa_liveness_analysis.h28 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()
Dstack_map_stream.h34 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()
Dcode_generator.h73 void CompileBaseline(CodeAllocator* allocator, bool is_leaf = false);
74 void CompileOptimized(CodeAllocator* allocator);
75 static CodeGenerator* Create(ArenaAllocator* allocator,
/art/compiler/dex/
Dglobal_value_numbering.cc23 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 …]
Dglobal_value_numbering.h31 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/
Dallocator.h94 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/
Drosalloc_space.cc45 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 …]
Drosalloc_space.h83 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/
Dheap-inl.h40 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/
Dallocation.h28 void* operator new(size_t size, ArenaAllocator* allocator) { in new() argument
29 return allocator->Alloc(size, kArenaAllocMisc); in new()
Dscoped_arena_allocator.h108 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/
Dinfo.txt1 Tests with long for the optimizing compiler's register allocator.
/art/test/404-optimizing-allocator/
Dinfo.txt1 Initial tests for testing the optimizing compiler's register allocator.
/art/test/074-gc-thrash/
Dinfo.txt1 This thrashes the memory allocator and garbage collector for a brief period.

123