/art/libartbase/base/ |
D | arena_allocator_test.cc | 28 size_t NumberOfArenas(ArenaAllocator* allocator) { in NumberOfArenas() argument 30 for (Arena* a = allocator->arena_head_; a != nullptr; a = a->next_) { in NumberOfArenas() 39 ArenaAllocator allocator(&pool); in TEST_F() local 40 ArenaBitVector bv(&allocator, 10, true); in TEST_F() 55 ArenaAllocator allocator(&pool); in TEST_F() local 56 small_array = allocator.AllocArray<uint32_t>(kSmallArraySize); in TEST_F() 61 ArenaAllocator allocator(&pool); in TEST_F() local 62 uint32_t* large_array = allocator.AllocArray<uint32_t>(kLargeArraySize); in TEST_F() 77 ArenaAllocator allocator(&pool); in TEST_F() local 79 void* alloc1 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 5 / 8); in TEST_F() [all …]
|
D | arena_object.h | 33 void* operator new(size_t size, ArenaAllocator* allocator) { 34 return allocator->Alloc(size, kAllocKind); 37 static void* operator new(size_t size, ScopedArenaAllocator* allocator) { 38 return allocator->Alloc(size, kAllocKind); 57 void* operator new(size_t size, ArenaAllocator* allocator) { 58 return allocator->Alloc(size, kAllocKind); 61 static void* operator new(size_t size, ScopedArenaAllocator* allocator) { 62 return allocator->Alloc(size, kAllocKind);
|
D | arena_bit_vector.cc | 56 static ArenaBitVectorAllocator* Create(ArenaAlloc* allocator, ArenaAllocKind kind) { in Create() argument 57 void* storage = allocator->template Alloc<ArenaBitVectorAllocator>(kind); in Create() 58 return new (storage) ArenaBitVectorAllocator(allocator, kind); in Create() 73 ArenaBitVectorAllocator(ArenaAlloc* allocator, ArenaAllocKind kind) in ArenaBitVectorAllocator() argument 74 : ArenaBitVectorAllocatorKind(kind), allocator_(allocator) { } in ArenaBitVectorAllocator() 81 ArenaBitVector::ArenaBitVector(ArenaAllocator* allocator, in ArenaBitVector() argument 87 ArenaBitVectorAllocator<ArenaAllocator>::Create(allocator, kind)) { in ArenaBitVector() 91 ArenaBitVector::ArenaBitVector(ScopedArenaAllocator* allocator, in ArenaBitVector() argument 97 ArenaBitVectorAllocator<ScopedArenaAllocator>::Create(allocator, kind)) { in ArenaBitVector()
|
D | arena_bit_vector.h | 36 static ArenaBitVector* Create(Allocator* allocator, 40 void* storage = allocator->template Alloc<ArenaBitVector>(kind); 41 return new (storage) ArenaBitVector(allocator, start_bits, expandable, kind); 44 ArenaBitVector(ArenaAllocator* allocator, 48 ArenaBitVector(ScopedArenaAllocator* allocator,
|
D | bit_table_test.cc | 32 ScopedArenaAllocator allocator(&arena_stack); in TEST() local 36 BitTableBuilderBase<1> builder(&allocator); in TEST() 48 ScopedArenaAllocator allocator(&arena_stack); in TEST() local 53 BitTableBuilderBase<1> builder(&allocator); in TEST() 74 ScopedArenaAllocator allocator(&arena_stack); in TEST() local 79 BitTableBuilderBase<1> builder(&allocator); in TEST() 94 ScopedArenaAllocator allocator(&arena_stack); in TEST() local 99 BitTableBuilderBase<4> builder(&allocator); in TEST() 125 ScopedArenaAllocator allocator(&arena_stack); in TEST() local 127 BitTableBuilderBase<2> builder(&allocator); in TEST() [all …]
|
/art/compiler/optimizing/ |
D | parallel_move_test.cc | 57 explicit TestParallelMoveResolverWithSwap(ArenaAllocator* allocator) in TestParallelMoveResolverWithSwap() argument 58 : ParallelMoveResolverWithSwap(allocator) {} in TestParallelMoveResolverWithSwap() 100 explicit TestParallelMoveResolverNoSwap(ArenaAllocator* allocator) in TestParallelMoveResolverNoSwap() argument 101 : ParallelMoveResolverNoSwap(allocator), scratch_index_(kScratchRegisterStartIndexForTest) {} in TestParallelMoveResolverNoSwap() 155 static HParallelMove* BuildParallelMove(ArenaAllocator* allocator, in BuildParallelMove() argument 158 HParallelMove* moves = new (allocator) HParallelMove(allocator); in BuildParallelMove() 186 ArenaAllocator allocator(&pool); in TYPED_TEST() local 189 TypeParam resolver(&allocator); in TYPED_TEST() 191 resolver.EmitNativeCode(BuildParallelMove(&allocator, moves, arraysize(moves))); in TYPED_TEST() 200 TypeParam resolver(&allocator); in TYPED_TEST() [all …]
|
D | live_interval_test.cc | 28 ScopedArenaAllocator* allocator = pool.GetScopedAllocator(); in TEST() local 32 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() 38 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() 45 ScopedArenaAllocator* allocator = pool.GetScopedAllocator(); in TEST() local 49 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() 59 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() 73 ScopedArenaAllocator* allocator = pool.GetScopedAllocator(); in TEST() local 77 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() 87 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() 101 ScopedArenaAllocator* allocator = pool.GetScopedAllocator(); in TEST() local [all …]
|
D | stack_map_stream.h | 42 explicit StackMapStream(ScopedArenaAllocator* allocator, InstructionSet instruction_set) in StackMapStream() argument 43 : allocator_(allocator), in StackMapStream() 45 stack_maps_(allocator), in StackMapStream() 46 register_masks_(allocator), in StackMapStream() 47 stack_masks_(allocator), in StackMapStream() 48 inline_infos_(allocator), in StackMapStream() 49 method_infos_(allocator), in StackMapStream() 50 dex_register_masks_(allocator), in StackMapStream() 51 dex_register_maps_(allocator), in StackMapStream() 52 dex_register_catalog_(allocator), in StackMapStream() [all …]
|
D | optimization.cc | 184 ArenaAllocator* allocator, in ConstructOptimizations() argument 189 ArenaVector<HOptimization*> optimizations(allocator->Adapter()); in ConstructOptimizations() 211 opt = most_recent_side_effects = new (allocator) SideEffectsAnalysis(graph, pass_name); in ConstructOptimizations() 215 new (allocator) HInductionVarAnalysis(graph, stats, pass_name); in ConstructOptimizations() 222 opt = new (allocator) GVNOptimization(graph, *most_recent_side_effects, pass_name); in ConstructOptimizations() 226 opt = new (allocator) LICM(graph, *most_recent_side_effects, stats, pass_name); in ConstructOptimizations() 230 opt = new (allocator) HLoopOptimization( in ConstructOptimizations() 235 opt = new (allocator) BoundsCheckElimination( in ConstructOptimizations() 242 opt = new (allocator) HConstantFolding(graph, stats, pass_name); in ConstructOptimizations() 245 opt = new (allocator) HDeadCodeElimination(graph, stats, pass_name); in ConstructOptimizations() [all …]
|
D | nodes_vector.h | 75 ArenaAllocator* allocator, in HVecOperation() argument 85 allocator, in HVecOperation() 269 ArenaAllocator* allocator, in HVecUnaryOperation() argument 275 allocator, in HVecUnaryOperation() 296 ArenaAllocator* allocator, in HVecBinaryOperation() argument 303 allocator, in HVecBinaryOperation() 327 ArenaAllocator* allocator, in HVecMemoryOperation() argument 334 allocator, in HVecMemoryOperation() 388 HVecReplicateScalar(ArenaAllocator* allocator, in HVecReplicateScalar() argument 394 kVecReplicateScalar, allocator, scalar, packed_type, vector_length, dex_pc) { in HVecReplicateScalar() [all …]
|
D | bounds_check_elimination_test.cc | 360 ArenaAllocator* allocator, in BuildSSAGraph1() argument 364 HBasicBlock* entry = new (allocator) HBasicBlock(graph); in BuildSSAGraph1() 367 HInstruction* parameter = new (allocator) HParameterValue( in BuildSSAGraph1() 375 HBasicBlock* block = new (allocator) HBasicBlock(graph); in BuildSSAGraph1() 378 block->AddInstruction(new (allocator) HGoto()); in BuildSSAGraph1() 380 HBasicBlock* loop_header = new (allocator) HBasicBlock(graph); in BuildSSAGraph1() 381 HBasicBlock* loop_body = new (allocator) HBasicBlock(graph); in BuildSSAGraph1() 382 HBasicBlock* exit = new (allocator) HBasicBlock(graph); in BuildSSAGraph1() 392 HPhi* phi = new (allocator) HPhi(allocator, 0, 0, DataType::Type::kInt32); in BuildSSAGraph1() 393 HInstruction* null_check = new (allocator) HNullCheck(parameter, 0); in BuildSSAGraph1() [all …]
|
D | parallel_move_resolver.h | 35 explicit ParallelMoveResolver(ArenaAllocator* allocator) in ParallelMoveResolver() argument 36 : moves_(allocator->Adapter(kArenaAllocParallelMoveResolver)) { in ParallelMoveResolver() 57 explicit ParallelMoveResolverWithSwap(ArenaAllocator* allocator) in ParallelMoveResolverWithSwap() argument 58 : ParallelMoveResolver(allocator) {} in ParallelMoveResolverWithSwap() 126 explicit ParallelMoveResolverNoSwap(ArenaAllocator* allocator) in ParallelMoveResolverNoSwap() argument 127 : ParallelMoveResolver(allocator), in ParallelMoveResolverNoSwap() 128 scratches_(allocator->Adapter(kArenaAllocParallelMoveResolver)), in ParallelMoveResolverNoSwap() 129 pending_moves_(allocator->Adapter(kArenaAllocParallelMoveResolver)), in ParallelMoveResolverNoSwap() 130 allocator_(allocator) { in ParallelMoveResolverNoSwap()
|
D | jit_patches_arm64.h | 49 JitPatchesARM64(Arm64Assembler* assembler, ArenaAllocator* allocator) : in JitPatchesARM64() argument 52 allocator->Adapter(kArenaAllocCodeGenerator)), in JitPatchesARM64() 54 allocator->Adapter(kArenaAllocCodeGenerator)), in JitPatchesARM64() 56 allocator->Adapter(kArenaAllocCodeGenerator)), in JitPatchesARM64() 58 allocator->Adapter(kArenaAllocCodeGenerator)) { in JitPatchesARM64()
|
D | instruction_simplifier_shared.cc | 80 ArenaAllocator* allocator = mul->GetBlock()->GetGraph()->GetAllocator(); in TrySimpleMultiplyAccumulatePatterns() local 81 HMultiplyAccumulate* mulacc = new (allocator) HMultiplyAccumulate( in TrySimpleMultiplyAccumulatePatterns() 110 ArenaAllocator* allocator = mul->GetBlock()->GetGraph()->GetAllocator(); in TryCombineMultiplyAccumulate() local 142 new (allocator) HMultiplyAccumulate(type, in TryCombineMultiplyAccumulate() 155 new (allocator) HMultiplyAccumulate(type, in TryCombineMultiplyAccumulate() 216 ArenaAllocator* allocator = graph->GetAllocator(); in TryExtractArrayAccessAddress() local 219 HIntermediateAddress* address = new (allocator) HIntermediateAddress(array, offset, kNoDexPc); in TryExtractArrayAccessAddress() 250 ArenaAllocator* allocator = graph->GetAllocator(); in TryExtractVecArrayAccessAddress() local 289 new (allocator) HIntermediateAddressIndex(index, offset, shift, kNoDexPc); in TryExtractVecArrayAccessAddress() 300 ArenaAllocator* allocator = basic_block->GetGraph()->GetAllocator(); in TryReplaceSubSubWithSubAdd() local [all …]
|
D | code_generation_data.h | 40 ScopedArenaAllocator allocator(arena_stack); in Create() 41 void* memory = allocator.Alloc<CodeGenerationData>(kArenaAllocCodeGenerator); in Create() 43 ::new (memory) CodeGenerationData(std::move(allocator), instruction_set)); in Create() 93 CodeGenerationData(ScopedArenaAllocator&& allocator, InstructionSet instruction_set) in CodeGenerationData() argument 94 : allocator_(std::move(allocator)), in CodeGenerationData()
|
D | ssa_phi_elimination.cc | 34 ScopedArenaAllocator allocator(graph_->GetArenaStack()); in MarkDeadPhis() local 37 ScopedArenaVector<HPhi*> worklist(allocator.Adapter(kArenaAllocSsaPhiElimination)); in MarkDeadPhis() 43 ScopedArenaSet<HPhi*> initially_live(allocator.Adapter(kArenaAllocSsaPhiElimination)); in MarkDeadPhis() 128 ScopedArenaAllocator allocator(graph_->GetArenaStack()); in Run() local 131 ScopedArenaVector<HPhi*> worklist(allocator.Adapter(kArenaAllocSsaPhiElimination)); in Run() 142 ArenaBitVector visited_phis_in_cycle(&allocator, in Run() 146 ScopedArenaVector<HPhi*> cycle_worklist(allocator.Adapter(kArenaAllocSsaPhiElimination)); in Run()
|
/art/tools/cpp-define-generator/ |
D | rosalloc.def | 18 #include "gc/allocator/rosalloc.h" 22 art::gc::allocator::RosAlloc::kThreadLocalBracketQuantumSize - 1) 24 ~static_cast<uint32_t>(art::gc::allocator::RosAlloc::kThreadLocalBracketQuantumSize - 1)) 26 ~static_cast<uint64_t>(art::gc::allocator::RosAlloc::kThreadLocalBracketQuantumSize - 1)) 28 art::gc::allocator::RosAlloc::kThreadLocalBracketQuantumSizeShift) 30 art::gc::allocator::RosAlloc::kMaxThreadLocalBracketSize) 32 art::gc::allocator::RosAlloc::RunFreeListHeadOffset()) 34 art::gc::allocator::RosAlloc::RunFreeListOffset()) 36 art::gc::allocator::RosAlloc::RunFreeListSizeOffset()) 38 art::gc::allocator::RosAlloc::RunSlotNextOffset())
|
/art/compiler/utils/ |
D | jni_macro_assembler.cc | 51 ArenaAllocator* allocator, in Create() argument 61 return MacroAsm32UniquePtr(new (allocator) arm::ArmVIXLJNIMacroAssembler(allocator)); in Create() 65 return MacroAsm32UniquePtr(new (allocator) x86::X86JNIMacroAssembler(allocator)); in Create() 68 UNUSED(allocator); in Create() 78 ArenaAllocator* allocator, in Create() argument 87 return MacroAsm64UniquePtr(new (allocator) arm64::Arm64JNIMacroAssembler(allocator)); in Create() 91 return MacroAsm64UniquePtr(new (allocator) riscv64::Riscv64JNIMacroAssembler(allocator)); in Create() 95 return MacroAsm64UniquePtr(new (allocator) x86_64::X86_64JNIMacroAssembler(allocator)); in Create() 98 UNUSED(allocator); in Create()
|
/art/compiler/trampolines/ |
D | trampoline_compiler.cc | 57 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) { in CreateTrampoline() argument 61 ArmVIXLAssembler assembler(allocator); in CreateTrampoline() 95 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) { in CreateTrampoline() argument 96 Arm64Assembler assembler(allocator); in CreateTrampoline() 128 static std::unique_ptr<const std::vector<uint8_t>> CreateTrampoline(ArenaAllocator* allocator, in CreateTrampoline() argument 131 Riscv64Assembler assembler(allocator); in CreateTrampoline() 160 static std::unique_ptr<const std::vector<uint8_t>> CreateTrampoline(ArenaAllocator* allocator, in CreateTrampoline() argument 162 X86Assembler assembler(allocator); in CreateTrampoline() 181 static std::unique_ptr<const std::vector<uint8_t>> CreateTrampoline(ArenaAllocator* allocator, in CreateTrampoline() argument 183 x86_64::X86_64Assembler assembler(allocator); in CreateTrampoline() [all …]
|
/art/test/404-optimizing-allocator/ |
D | Android.bp | 3 // Build rules for ART run-test `404-optimizing-allocator`. 16 name: "art-run-test-404-optimizing-allocator", 21 ":art-run-test-404-optimizing-allocator-expected-stdout", 22 ":art-run-test-404-optimizing-allocator-expected-stderr", 28 name: "art-run-test-404-optimizing-allocator-expected-stdout", 29 out: ["art-run-test-404-optimizing-allocator-expected-stdout.txt"], 36 name: "art-run-test-404-optimizing-allocator-expected-stderr", 37 out: ["art-run-test-404-optimizing-allocator-expected-stderr.txt"],
|
/art/test/405-optimizing-long-allocator/ |
D | Android.bp | 3 // Build rules for ART run-test `405-optimizing-long-allocator`. 16 name: "art-run-test-405-optimizing-long-allocator", 21 ":art-run-test-405-optimizing-long-allocator-expected-stdout", 22 ":art-run-test-405-optimizing-long-allocator-expected-stderr", 28 name: "art-run-test-405-optimizing-long-allocator-expected-stdout", 29 out: ["art-run-test-405-optimizing-long-allocator-expected-stdout.txt"], 36 name: "art-run-test-405-optimizing-long-allocator-expected-stderr", 37 out: ["art-run-test-405-optimizing-long-allocator-expected-stderr.txt"],
|
/art/compiler/jni/quick/ |
D | calling_convention.cc | 49 ArenaAllocator* allocator, in Create() argument 59 new (allocator) arm::ArmManagedRuntimeCallingConvention( in Create() 65 new (allocator) arm64::Arm64ManagedRuntimeCallingConvention( in Create() 71 new (allocator) riscv64::Riscv64ManagedRuntimeCallingConvention( in Create() 77 new (allocator) x86::X86ManagedRuntimeCallingConvention( in Create() 83 new (allocator) x86_64::X86_64ManagedRuntimeCallingConvention( in Create() 87 UNUSED(allocator); in Create() 148 std::unique_ptr<JniCallingConvention> JniCallingConvention::Create(ArenaAllocator* allocator, in Create() argument 160 new (allocator) arm::ArmJniCallingConvention( in Create() 166 new (allocator) arm64::Arm64JniCallingConvention( in Create() [all …]
|
/art/test/130-hprof/src/ |
D | Main.java | 48 Class<?> allocator = loader.loadClass("Allocator"); in allocInDifferentLoader() local 49 return allocator.getDeclaredMethod("allocObject", null).invoke(null); in allocInDifferentLoader() 135 Allocator allocator = new Allocator(); in testGcAndDump() local 136 Dumper dumper = new Dumper(allocator); in testGcAndDump() 137 allocator.start(); in testGcAndDump() 140 allocator.join(); in testGcAndDump() 164 Dumper(Allocator allocator) { in Dumper() argument 165 this.allocator = allocator; in Dumper() 167 Allocator allocator; field in Main.Dumper 173 allocator.running = false; in run()
|
/art/runtime/gc/ |
D | allocator_type.h | 44 inline constexpr bool IsTLABAllocator(AllocatorType allocator) { in IsTLABAllocator() argument 45 return allocator == kAllocatorTypeTLAB || allocator == kAllocatorTypeRegionTLAB; in IsTLABAllocator()
|
/art/runtime/gc/space/ |
D | rosalloc_space.cc | 50 art::gc::allocator::RosAlloc* rosalloc, in RosAllocSpace() 83 allocator::RosAlloc* rosalloc = CreateRosAlloc(mem_map.Begin(), in CreateFromMemMap() 179 allocator::RosAlloc* RosAllocSpace::CreateRosAlloc(void* begin, size_t morecore_start, in CreateRosAlloc() 188 allocator::RosAlloc* rosalloc = new art::gc::allocator::RosAlloc( in CreateRosAlloc() 191 art::gc::allocator::RosAlloc::kPageReleaseModeAll : in CreateRosAlloc() 192 art::gc::allocator::RosAlloc::kPageReleaseModeSizeAndEnd, in CreateRosAlloc() 226 void* allocator, in CreateInstance() argument 237 reinterpret_cast<allocator::RosAlloc*>(allocator), in CreateInstance() 249 reinterpret_cast<allocator::RosAlloc*>(allocator), in CreateInstance() 360 InspectAllRosAlloc(art::gc::allocator::RosAlloc::BytesAllocatedCallback, &bytes_allocated, false); in GetBytesAllocated() [all …]
|