Home
last modified time | relevance | path

Searched refs:arena (Results 1 – 25 of 35) sorted by relevance

12

/art/compiler/utils/
Darena_bit_vector.cc25 explicit ArenaBitVectorAllocator(ArenaAlloc* arena) : arena_(arena) {} in ArenaBitVectorAllocator() argument
34 static void* operator new(size_t size, ArenaAlloc* arena) { in operator new() argument
35 return arena->Alloc(sizeof(ArenaBitVectorAllocator), kArenaAllocGrowableBitMap); in operator new()
44 ArenaBitVector::ArenaBitVector(ArenaAllocator* arena, unsigned int start_bits, in ArenaBitVector() argument
47 new (arena) ArenaBitVectorAllocator<ArenaAllocator>(arena)), kind_(kind) { in ArenaBitVector()
51 ArenaBitVector::ArenaBitVector(ScopedArenaAllocator* arena, unsigned int start_bits, in ArenaBitVector() argument
54 new (arena) ArenaBitVectorAllocator<ScopedArenaAllocator>(arena)), kind_(kind) { in ArenaBitVector()
Darena_bit_vector.h55 ArenaBitVector(ArenaAllocator* arena, uint32_t start_bits, bool expandable,
57 ArenaBitVector(ScopedArenaAllocator* arena, uint32_t start_bits, bool expandable,
61 static void* operator new(size_t size, ArenaAllocator* arena) { in new() argument
62 return arena->Alloc(sizeof(ArenaBitVector), kArenaAllocGrowableBitMap); in new()
64 static void* operator new(size_t size, ScopedArenaAllocator* arena) { in new() argument
65 return arena->Alloc(sizeof(ArenaBitVector), kArenaAllocGrowableBitMap); in new()
Darena_allocator.cc88 for (const Arena* arena = first; arena != nullptr; arena = arena->next_) { in Dump() local
89 malloc_bytes += arena->Size(); in Dump()
90 lost_bytes += arena->RemainingSpace(); in Dump()
157 auto* arena = free_arenas_; in ~ArenaPool() local
159 delete arena; in ~ArenaPool()
182 for (Arena* arena = first; arena != nullptr; arena = arena->next_) { in FreeArenaChain() local
183 VALGRIND_MAKE_MEM_UNDEFINED(arena->memory_, arena->bytes_allocated_); in FreeArenaChain()
Darena_allocator_test.cc25 ArenaAllocator arena(&pool); in TEST() local
26 ArenaBitVector bv(&arena, 10, true); in TEST()
Dgrowable_array.h84 GrowableArray(ArenaAllocator* arena, size_t init_length, OatListKind kind = kGrowableArrayMisc)
85 : arena_(arena), in arena_() argument
202 static void* operator new(size_t size, ArenaAllocator* arena) { in new() argument
203 return arena->Alloc(sizeof(GrowableArray<T>), kArenaAllocGrowableArray); in new()
/art/compiler/optimizing/
Dfind_loops_test.cc46 ArenaPool arena; in TEST() local
47 HGraph* graph = TestCode(data, &arena); in TEST()
58 ArenaPool arena; in TEST() local
59 HGraph* graph = TestCode(data, &arena); in TEST()
73 ArenaPool arena; in TEST() local
74 HGraph* graph = TestCode(data, &arena); in TEST()
89 ArenaPool arena; in TEST() local
90 HGraph* graph = TestCode(data, &arena); in TEST()
103 ArenaPool arena; in TEST() local
104 HGraph* graph = TestCode(data, &arena); in TEST()
[all …]
Dstack_map_test.cc36 ArenaAllocator arena(&pool); in TEST() local
37 StackMapStream<size_t> stream(&arena); in TEST()
39 ArenaBitVector sp_mask(&arena, 0, false); in TEST()
45 void* memory = arena.Alloc(size, kArenaAllocMisc); in TEST()
73 ArenaAllocator arena(&pool); in TEST() local
74 StackMapStream<size_t> stream(&arena); in TEST()
76 ArenaBitVector sp_mask1(&arena, 0, true); in TEST()
85 ArenaBitVector sp_mask2(&arena, 0, true); in TEST()
92 void* memory = arena.Alloc(size, kArenaAllocMisc); in TEST()
Dbuilder.h34 HGraphBuilder(ArenaAllocator* arena,
38 : arena_(arena), in arena_() argument
39 branch_targets_(arena, 0), in arena_()
40 locals_(arena, 0), in arena_()
Dcodegen_test.cc71 ArenaAllocator arena(&pool); in TestCode() local
72 HGraphBuilder builder(&arena); in TestCode()
78 CodeGenerator* codegen = CodeGenerator::Create(&arena, graph, kX86); in TestCode()
86 codegen = CodeGenerator::Create(&arena, graph, kArm); in TestCode()
92 codegen = CodeGenerator::Create(&arena, graph, kX86_64); in TestCode()
Doptimizing_compiler.cc105 ArenaAllocator arena(&pool); in TryCompile() local
106 HGraphBuilder builder(&arena, &dex_compilation_unit, &dex_file, GetCompilerDriver()); in TryCompile()
116 CodeGenerator* codegen = CodeGenerator::Create(&arena, graph, instruction_set); in TryCompile()
Dnodes.h73 explicit HGraph(ArenaAllocator* arena) in HGraph() argument
74 : arena_(arena), in HGraph()
75 blocks_(arena, kDefaultNumberOfBlocks), in HGraph()
76 reverse_post_order_(arena, kDefaultNumberOfBlocks), in HGraph()
641 HEnvironment(ArenaAllocator* arena, size_t number_of_vregs) : vregs_(arena, number_of_vregs) { in HEnvironment() argument
1130 HInvoke(ArenaAllocator* arena, in HInvoke() argument
1134 : inputs_(arena, number_of_arguments), in HInvoke()
1170 HInvokeStatic(ArenaAllocator* arena, in HInvokeStatic() argument
1175 : HInvoke(arena, number_of_arguments, return_type, dex_pc), in HInvokeStatic()
1267 HPhi(ArenaAllocator* arena, uint32_t reg_number, size_t number_of_inputs, Primitive::Type type) in HPhi() argument
[all …]
/art/compiler/dex/
Dbackend.h51 explicit Backend(ArenaAllocator* arena) : arena_(arena) {} in Backend() argument
Dmir_optimization_test.cc121 bb->successor_blocks = new (&cu_.arena) GrowableArray<SuccessorBlockInfo*>( in DoPrepareBasicBlocks()
122 &cu_.arena, def->num_successors, kGrowableArraySuccessorBlocks); in DoPrepareBasicBlocks()
125 static_cast<SuccessorBlockInfo*>(cu_.arena.Alloc(sizeof(SuccessorBlockInfo), in DoPrepareBasicBlocks()
132 bb->predecessors = new (&cu_.arena) GrowableArray<BasicBlockId>( in DoPrepareBasicBlocks()
133 &cu_.arena, def->num_predecessors, kGrowableArrayPredecessors); in DoPrepareBasicBlocks()
140 cu_.arena.Alloc(sizeof(BasicBlockDataFlow), kArenaAllocDFInfo)); in DoPrepareBasicBlocks()
158 mirs_ = reinterpret_cast<MIR*>(cu_.arena.Alloc(sizeof(MIR) * count, kArenaAllocMIR)); in DoPrepareMIRs()
179 cu_.arena.Alloc(sizeof(DexFile::CodeItem), kArenaAllocMisc)); in DoPrepareMIRs()
212 cu_.mir_graph.reset(new MIRGraph(&cu_, &cu_.arena)); in ClassInitCheckEliminationTest()
411 check_bb->successor_blocks = new (&cu_.arena) GrowableArray<SuccessorBlockInfo*>( in TEST_F()
[all …]
Dmir_graph_test.cc78 bb->successor_blocks = new (&cu_.arena) GrowableArray<SuccessorBlockInfo*>( in DoPrepareBasicBlocks()
79 &cu_.arena, def->num_successors, kGrowableArraySuccessorBlocks); in DoPrepareBasicBlocks()
82 static_cast<SuccessorBlockInfo*>(cu_.arena.Alloc(sizeof(SuccessorBlockInfo), in DoPrepareBasicBlocks()
89 bb->predecessors = new (&cu_.arena) GrowableArray<BasicBlockId>( in DoPrepareBasicBlocks()
90 &cu_.arena, def->num_predecessors, kGrowableArrayPredecessors); in DoPrepareBasicBlocks()
97 cu_.arena.Alloc(sizeof(BasicBlockDataFlow), kArenaAllocDFInfo)); in DoPrepareBasicBlocks()
157 cu_.mir_graph.reset(new MIRGraph(&cu_, &cu_.arena)); in TopologicalSortOrderTest()
Dmir_graph.cc70 MIRGraph::MIRGraph(CompilationUnit* cu, ArenaAllocator* arena) in MIRGraph() argument
72 block_id_map_(std::less<unsigned int>(), arena->Adapter()), in MIRGraph()
80 use_counts_(arena, 256, kGrowableArrayMisc), in MIRGraph()
81 raw_use_counts_(arena, 256, kGrowableArrayMisc), in MIRGraph()
98 block_list_(arena, 100, kGrowableArrayBlockList), in MIRGraph()
104 dex_pc_to_block_map_(arena, 0, kGrowableArrayMisc), in MIRGraph()
105 m_units_(arena->Adapter()), in MIRGraph()
106 method_stack_(arena->Adapter()), in MIRGraph()
112 extended_basic_blocks_(arena->Adapter()), in MIRGraph()
116 arena_(arena), in MIRGraph()
[all …]
Dcompiler_ir.h85 ArenaAllocator arena; member
Dglobal_value_numbering_test.cc195 bb->successor_blocks = new (&cu_.arena) GrowableArray<SuccessorBlockInfo*>( in DoPrepareBasicBlocks()
196 &cu_.arena, def->num_successors, kGrowableArraySuccessorBlocks); in DoPrepareBasicBlocks()
199 static_cast<SuccessorBlockInfo*>(cu_.arena.Alloc(sizeof(SuccessorBlockInfo), in DoPrepareBasicBlocks()
206 bb->predecessors = new (&cu_.arena) GrowableArray<BasicBlockId>( in DoPrepareBasicBlocks()
207 &cu_.arena, def->num_predecessors, kGrowableArrayPredecessors); in DoPrepareBasicBlocks()
214 cu_.arena.Alloc(sizeof(BasicBlockDataFlow), kArenaAllocDFInfo)); in DoPrepareBasicBlocks()
233 mirs_ = reinterpret_cast<MIR*>(cu_.arena.Alloc(sizeof(MIR) * count, kArenaAllocMIR)); in DoPrepareMIRs()
338 live_in_v_(new (&cu_.arena) ArenaBitVector(&cu_.arena, kMaxSsaRegs, false, kBitMapMisc)) { in GlobalValueNumberingTest()
339 cu_.mir_graph.reset(new MIRGraph(&cu_, &cu_.arena)); in GlobalValueNumberingTest()
344 cu_.mir_graph->ssa_base_vregs_ = new (&cu_.arena) GrowableArray<int>(&cu_.arena, kMaxSsaRegs); in GlobalValueNumberingTest()
[all …]
Dfrontend.cc502 arena(pool), in CompilationUnit()
705 cu.mir_graph.reset(new MIRGraph(&cu, &cu.arena)); in CompileMethod()
789 if (cu.arena.BytesAllocated() > (1 * 1024 *1024)) { in CompileMethod()
790 MemStats mem_stats(cu.arena.GetMemStats()); in CompileMethod()
796 LOG(INFO) << "MEMINFO " << cu.arena.BytesAllocated() << " " << cu.mir_graph->GetNumBlocks() in CompileMethod()
Dmir_graph.h383 static void* operator new(size_t size, ArenaAllocator* arena) { in new()
384 return arena->Alloc(sizeof(MIR), kArenaAllocMIR); in new()
474 static void* operator new(size_t size, ArenaAllocator* arena) { in new()
475 return arena->Alloc(sizeof(BasicBlock), kArenaAllocBB); in new()
541 MIRGraph(CompilationUnit* cu, ArenaAllocator* arena);
/art/compiler/
Dcompilers.cc103 mir_to_lir = ArmCodeGenerator(cu, cu->mir_graph.get(), &cu->arena); in GetCodeGenerator()
106 mir_to_lir = Arm64CodeGenerator(cu, cu->mir_graph.get(), &cu->arena); in GetCodeGenerator()
109 mir_to_lir = MipsCodeGenerator(cu, cu->mir_graph.get(), &cu->arena); in GetCodeGenerator()
114 mir_to_lir = X86CodeGenerator(cu, cu->mir_graph.get(), &cu->arena); in GetCodeGenerator()
/art/compiler/dex/portable/
Dmir_to_gbc.h47 ArenaAllocator* const arena,
53 MirConverter(CompilationUnit* cu, MIRGraph* mir_graph, ArenaAllocator* arena, in MirConverter() argument
55 : Backend(arena), in MirConverter()
69 llvm_values_(arena, mir_graph->GetNumSSARegs()), in MirConverter()
/art/compiler/dex/quick/
Dmir_to_lir.h192 ArenaAllocator* const arena);
194 ArenaAllocator* const arena);
196 ArenaAllocator* const arena);
198 ArenaAllocator* const arena);
343 static void* operator new(size_t size, ArenaAllocator* arena) { in new() argument
344 return arena->Alloc(size, kArenaAllocRegAlloc); in new()
443 RegisterPool(Mir2Lir* m2l, ArenaAllocator* arena,
455 static void* operator new(size_t size, ArenaAllocator* arena) { in new() argument
456 return arena->Alloc(size, kArenaAllocRegAlloc); in new()
531 static void* operator new(size_t size, ArenaAllocator* arena) { in new() argument
[all …]
Dralloc_util.cc58 Mir2Lir::RegisterPool::RegisterPool(Mir2Lir* m2l, ArenaAllocator* arena, in RegisterPool() argument
69 core_regs_(arena, core_regs.size()), next_core_reg_(0), in RegisterPool()
70 core64_regs_(arena, core64_regs.size()), next_core64_reg_(0), in RegisterPool()
71 sp_regs_(arena, sp_regs.size()), next_sp_reg_(0), in RegisterPool()
72 dp_regs_(arena, dp_regs.size()), next_dp_reg_(0), m2l_(m2l) { in RegisterPool()
86 RegisterInfo* info = new (arena) RegisterInfo(reg, m2l_->GetRegMaskCommon(reg)); in RegisterPool()
91 RegisterInfo* info = new (arena) RegisterInfo(reg, m2l_->GetRegMaskCommon(reg)); in RegisterPool()
96 RegisterInfo* info = new (arena) RegisterInfo(reg, m2l_->GetRegMaskCommon(reg)); in RegisterPool()
101 RegisterInfo* info = new (arena) RegisterInfo(reg, m2l_->GetRegMaskCommon(reg)); in RegisterPool()
129 RegisterInfo* invalid_reg = new (arena) RegisterInfo(RegStorage::InvalidReg(), kEncodeNone); in RegisterPool()
Dcodegen_util.cc971 Mir2Lir::Mir2Lir(CompilationUnit* cu, MIRGraph* mir_graph, ArenaAllocator* arena) in Mir2Lir() argument
972 : Backend(arena), in Mir2Lir()
980 switch_tables_(arena, 4, kGrowableArraySwitchTables), in Mir2Lir()
981 fill_array_data_(arena, 4, kGrowableArrayFillArrayData), in Mir2Lir()
982 tempreg_info_(arena, 20, kGrowableArrayMisc), in Mir2Lir()
983 reginfo_map_(arena, RegStorage::kMaxRegs, kGrowableArrayMisc), in Mir2Lir()
984 pointer_storage_(arena, 128, kGrowableArrayMisc), in Mir2Lir()
1002 slow_paths_(arena, 32, kGrowableArraySlowPaths), in Mir2Lir()
1004 mask_cache_(arena) { in Mir2Lir()
/art/compiler/dex/quick/mips/
Dtarget_mips.cc573 MipsMir2Lir::MipsMir2Lir(CompilationUnit* cu, MIRGraph* mir_graph, ArenaAllocator* arena) in MipsMir2Lir() argument
574 : Mir2Lir(cu, mir_graph, arena) { in MipsMir2Lir()
585 ArenaAllocator* const arena) { in MipsCodeGenerator() argument
586 return new MipsMir2Lir(cu, mir_graph, arena); in MipsCodeGenerator()

12