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

1234567

/art/compiler/utils/
H A Djni_macro_assembler.cc50 ArenaAllocator* allocator,
61 return MacroAsm32UniquePtr(new (allocator) arm::ArmVIXLJNIMacroAssembler(allocator));
65 return MacroAsm32UniquePtr(new (allocator) mips::MipsAssembler(
66 allocator,
73 return MacroAsm32UniquePtr(new (allocator) x86::X86JNIMacroAssembler(allocator));
85 ArenaAllocator* allocator,
95 return MacroAsm64UniquePtr(new (allocator) arm64::Arm64JNIMacroAssembler(allocator));
49 Create( ArenaAllocator* allocator, InstructionSet instruction_set, const InstructionSetFeatures* instruction_set_features) argument
84 Create( ArenaAllocator* allocator, InstructionSet instruction_set, const InstructionSetFeatures* instruction_set_features) argument
[all...]
/art/runtime/base/
H A Darena_object.h33 void* operator new(size_t size, ArenaAllocator* allocator) { argument
34 return allocator->Alloc(size, kAllocKind);
37 static void* operator new(size_t size, ScopedArenaAllocator* allocator) { argument
38 return allocator->Alloc(size, kAllocKind);
57 void* operator new(size_t size, ArenaAllocator* allocator) { argument
58 return allocator->Alloc(size, kAllocKind);
61 static void* operator new(size_t size, ScopedArenaAllocator* allocator) { argument
62 return allocator->Alloc(size, kAllocKind);
H A Darena_allocator_test.cc26 size_t NumberOfArenas(ArenaAllocator* allocator) { argument
28 for (Arena* a = allocator->arena_head_; a != nullptr; a = a->next_) {
37 ArenaAllocator allocator(&pool);
38 ArenaBitVector bv(&allocator, 10, true);
53 ArenaAllocator allocator(&pool);
54 small_array = allocator.AllocArray<uint32_t>(kSmallArraySize);
59 ArenaAllocator allocator(&pool);
60 uint32_t* large_array = allocator.AllocArray<uint32_t>(kLargeArraySize);
75 ArenaAllocator allocator(&pool);
77 void* alloc1 = allocator
[all...]
H A Darena_bit_vector.cc19 #include "base/allocator.h"
55 static ArenaBitVectorAllocator* Create(ArenaAlloc* allocator, ArenaAllocKind kind) { argument
56 void* storage = allocator->template Alloc<ArenaBitVectorAllocator>(kind);
57 return new (storage) ArenaBitVectorAllocator(allocator, kind);
72 ArenaBitVectorAllocator(ArenaAlloc* allocator, ArenaAllocKind kind) argument
73 : ArenaBitVectorAllocatorKind(kind), allocator_(allocator) { }
80 ArenaBitVector::ArenaBitVector(ArenaAllocator* allocator, argument
86 ArenaBitVectorAllocator<ArenaAllocator>::Create(allocator, kind)) {
89 ArenaBitVector::ArenaBitVector(ScopedArenaAllocator* allocator, argument
95 ArenaBitVectorAllocator<ScopedArenaAllocator>::Create(allocator, kin
[all...]
H A Darena_bit_vector.h34 static ArenaBitVector* Create(Allocator* allocator, argument
38 void* storage = allocator->template Alloc<ArenaBitVector>(kind);
39 return new (storage) ArenaBitVector(allocator, start_bits, expandable, kind);
42 ArenaBitVector(ArenaAllocator* allocator,
46 ArenaBitVector(ScopedArenaAllocator* allocator,
/art/runtime/gc/
H A Dallocator_type.h27 kAllocatorTypeBumpPointer, // Use BumpPointer allocator, has entrypoints.
28 kAllocatorTypeTLAB, // Use TLAB allocator, has entrypoints.
29 kAllocatorTypeRosAlloc, // Use RosAlloc allocator, has entrypoints.
30 kAllocatorTypeDlMalloc, // Use dlmalloc allocator, has entrypoints.
31 kAllocatorTypeNonMoving, // Special allocator for non moving objects, doesn't have entrypoints.
38 inline constexpr bool IsTLABAllocator(AllocatorType allocator) { argument
39 return allocator == kAllocatorTypeTLAB || allocator == kAllocatorTypeRegionTLAB;
/art/tools/cpp-define-generator/
H A Dconstant_rosalloc.def20 #include "gc/allocator/rosalloc.h" // art::gc::allocator::RosAlloc
26 DEFINE_ROSALLOC_CONSTANT(MAX_THREAD_LOCAL_BRACKET_SIZE, int32_t, art::gc::allocator::RosAlloc::kMaxThreadLocalBracketSize)
27 DEFINE_ROSALLOC_CONSTANT(BRACKET_QUANTUM_SIZE_SHIFT, int32_t, art::gc::allocator::RosAlloc::kThreadLocalBracketQuantumSizeShift)
29 DEFINE_ROSALLOC_CONSTANT(BRACKET_QUANTUM_SIZE_MASK, int32_t, static_cast<int32_t>(art::gc::allocator::RosAlloc::kThreadLocalBracketQuantumSize - 1))
31 uint32_t, ~static_cast<uint32_t>(art::gc::allocator::RosAlloc::kThreadLocalBracketQuantumSize - 1))
33 uint64_t, ~static_cast<uint64_t>(art::gc::allocator::RosAlloc::kThreadLocalBracketQuantumSize - 1))
34 DEFINE_ROSALLOC_CONSTANT(RUN_FREE_LIST_OFFSET, int32_t, art::gc::allocator::RosAlloc::RunFreeListOffset())
35 DEFINE_ROSALLOC_CONSTANT(RUN_FREE_LIST_HEAD_OFFSET, int32_t, art::gc::allocator::RosAlloc::RunFreeListHeadOffset())
36 DEFINE_ROSALLOC_CONSTANT(RUN_FREE_LIST_SIZE_OFFSET, int32_t, art::gc::allocator
[all...]
/art/compiler/optimizing/
H A Dparallel_move_test.cc55 explicit TestParallelMoveResolverWithSwap(ArenaAllocator* allocator) argument
56 : ParallelMoveResolverWithSwap(allocator) {}
98 explicit TestParallelMoveResolverNoSwap(ArenaAllocator* allocator) argument
99 : ParallelMoveResolverNoSwap(allocator), scratch_index_(kScratchRegisterStartIndexForTest) {}
153 static HParallelMove* BuildParallelMove(ArenaAllocator* allocator, argument
156 HParallelMove* moves = new (allocator) HParallelMove(allocator);
184 ArenaAllocator allocator(&pool);
187 TypeParam resolver(&allocator);
189 resolver.EmitNativeCode(BuildParallelMove(&allocator, move
[all...]
H A Dlive_interval_test.cc27 ScopedArenaAllocator* allocator = pool.GetScopedAllocator(); local
31 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator);
37 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator);
44 ScopedArenaAllocator* allocator = pool.GetScopedAllocator(); local
48 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator);
58 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator);
72 ScopedArenaAllocator* allocator = pool.GetScopedAllocator(); local
76 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator);
86 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator);
100 ScopedArenaAllocator* allocator local
192 ScopedArenaAllocator* allocator = pool.GetScopedAllocator(); local
283 ScopedArenaAllocator* allocator = pool.GetScopedAllocator(); local
[all...]
H A Doptimization.cc172 ArenaAllocator* allocator,
179 ArenaVector<HOptimization*> optimizations(allocator->Adapter());
202 opt = most_recent_side_effects = new (allocator) SideEffectsAnalysis(graph, name);
205 opt = most_recent_induction = new (allocator) HInductionVarAnalysis(graph, name);
208 opt = most_recent_lsa = new (allocator) LoadStoreAnalysis(graph, name);
215 opt = new (allocator) GVNOptimization(graph, *most_recent_side_effects, name);
219 opt = new (allocator) LICM(graph, *most_recent_side_effects, stats, name);
223 opt = new (allocator) HLoopOptimization(graph, driver, most_recent_induction, stats, name);
227 opt = new (allocator) BoundsCheckElimination(
232 opt = new (allocator) LoadStoreEliminatio
169 ConstructOptimizations( const OptimizationDef definitions[], size_t length, ArenaAllocator* allocator, HGraph* graph, OptimizingCompilerStats* stats, CodeGenerator* codegen, CompilerDriver* driver, const DexCompilationUnit& dex_compilation_unit, VariableSizedHandleScope* handles) argument
[all...]
H A Dparallel_move_resolver.h34 explicit ParallelMoveResolver(ArenaAllocator* allocator) argument
35 : moves_(allocator->Adapter(kArenaAllocParallelMoveResolver)) {
56 explicit ParallelMoveResolverWithSwap(ArenaAllocator* allocator) argument
57 : ParallelMoveResolver(allocator) {}
125 explicit ParallelMoveResolverNoSwap(ArenaAllocator* allocator) argument
126 : ParallelMoveResolver(allocator),
127 scratches_(allocator->Adapter(kArenaAllocParallelMoveResolver)),
128 pending_moves_(allocator->Adapter(kArenaAllocParallelMoveResolver)),
129 allocator_(allocator) {
H A Dnodes_vector.h75 ArenaAllocator* allocator,
84 allocator,
205 ArenaAllocator* allocator,
211 allocator,
232 ArenaAllocator* allocator,
239 allocator,
263 ArenaAllocator* allocator,
270 allocator,
324 HVecReplicateScalar(ArenaAllocator* allocator, argument
330 kVecReplicateScalar, allocator, scala
74 HVecOperation(InstructionKind kind, ArenaAllocator* allocator, DataType::Type packed_type, SideEffects side_effects, size_t number_of_inputs, size_t vector_length, uint32_t dex_pc) argument
204 HVecUnaryOperation(InstructionKind kind, ArenaAllocator* allocator, HInstruction* input, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
231 HVecBinaryOperation(InstructionKind kind, ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
262 HVecMemoryOperation(InstructionKind kind, ArenaAllocator* allocator, DataType::Type packed_type, SideEffects side_effects, size_t number_of_inputs, size_t vector_length, uint32_t dex_pc) argument
350 HVecExtractScalar(ArenaAllocator* allocator, HInstruction* input, DataType::Type packed_type, size_t vector_length, size_t index, uint32_t dex_pc) argument
389 HVecReduce(ArenaAllocator* allocator, HInstruction* input, DataType::Type packed_type, size_t vector_length, ReductionKind kind, uint32_t dex_pc) argument
423 HVecCnv(ArenaAllocator* allocator, HInstruction* input, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
448 HVecNeg(ArenaAllocator* allocator, HInstruction* input, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
470 HVecAbs(ArenaAllocator* allocator, HInstruction* input, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
492 HVecNot(ArenaAllocator* allocator, HInstruction* input, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
517 HVecAdd(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
542 HVecHalvingAdd(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, bool is_rounded, uint32_t dex_pc) argument
582 HVecSub(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
605 HVecMul(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
628 HVecDiv(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
652 HVecMin(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
676 HVecMax(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
699 HVecAnd(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
721 HVecAndNot(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
744 HVecOr(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
766 HVecXor(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
788 HVecShl(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
810 HVecShr(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
832 HVecUShr(ArenaAllocator* allocator, HInstruction* left, HInstruction* right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
859 HVecSetScalars(ArenaAllocator* allocator, HInstruction* scalars[], DataType::Type packed_type, size_t vector_length, size_t number_of_scalars, uint32_t dex_pc) argument
892 HVecMultiplyAccumulate(ArenaAllocator* allocator, InstructionKind op, HInstruction* accumulator, HInstruction* mul_left, HInstruction* mul_right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
944 HVecSADAccumulate(ArenaAllocator* allocator, HInstruction* accumulator, HInstruction* sad_left, HInstruction* sad_right, DataType::Type packed_type, size_t vector_length, uint32_t dex_pc) argument
978 HVecLoad(ArenaAllocator* allocator, HInstruction* base, HInstruction* index, DataType::Type packed_type, SideEffects side_effects, size_t vector_length, bool is_string_char_at, uint32_t dex_pc) argument
1024 HVecStore(ArenaAllocator* allocator, HInstruction* base, HInstruction* index, HInstruction* value, DataType::Type packed_type, SideEffects side_effects, size_t vector_length, uint32_t dex_pc) argument
[all...]
H A Dstack_map_stream.h63 explicit StackMapStream(ScopedArenaAllocator* allocator, InstructionSet instruction_set) argument
64 : allocator_(allocator),
66 stack_maps_(allocator->Adapter(kArenaAllocStackMapStream)),
67 location_catalog_entries_(allocator->Adapter(kArenaAllocStackMapStream)),
68 location_catalog_entries_indices_(allocator->Adapter(kArenaAllocStackMapStream)),
69 dex_register_locations_(allocator->Adapter(kArenaAllocStackMapStream)),
70 inline_infos_(allocator->Adapter(kArenaAllocStackMapStream)),
71 stack_masks_(allocator->Adapter(kArenaAllocStackMapStream)),
72 register_masks_(allocator->Adapter(kArenaAllocStackMapStream)),
73 method_indices_(allocator
[all...]
H A Dbounds_check_elimination_test.cc359 ArenaAllocator* allocator,
363 HBasicBlock* entry = new (allocator) HBasicBlock(graph);
366 HInstruction* parameter = new (allocator) HParameterValue(
374 HBasicBlock* block = new (allocator) HBasicBlock(graph);
377 block->AddInstruction(new (allocator) HGoto());
379 HBasicBlock* loop_header = new (allocator) HBasicBlock(graph);
380 HBasicBlock* loop_body = new (allocator) HBasicBlock(graph);
381 HBasicBlock* exit = new (allocator) HBasicBlock(graph);
391 HPhi* phi = new (allocator) HPhi(allocator,
358 BuildSSAGraph1(HGraph* graph, ArenaAllocator* allocator, int initial, int increment, IfCondition cond = kCondGE) argument
473 BuildSSAGraph2(HGraph *graph, ArenaAllocator* allocator, int initial, int increment = -1, IfCondition cond = kCondLE) argument
583 BuildSSAGraph3(HGraph* graph, ArenaAllocator* allocator, int initial, int increment, IfCondition cond) argument
685 BuildSSAGraph4(HGraph* graph, ArenaAllocator* allocator, int initial, IfCondition cond = kCondGE) argument
[all...]
H A Dgraph_visualizer.h57 explicit DisassemblyInformation(ArenaAllocator* allocator) argument
59 instruction_intervals_(std::less<const HInstruction*>(), allocator->Adapter()),
60 slow_path_intervals_(allocator->Adapter()) {}
H A Dlocations.cc32 ArenaAllocator* allocator)
33 : inputs_(instruction->InputCount(), allocator->Adapter(kArenaAllocLocationSummary)),
34 temps_(allocator->Adapter(kArenaAllocLocationSummary)),
46 stack_mask_ = ArenaBitVector::Create(allocator, 0, true, kArenaAllocLocationSummary);
29 LocationSummary(HInstruction* instruction, CallKind call_kind, bool intrinsified, ArenaAllocator* allocator) argument
H A Dintrinsics_arm64.h42 explicit IntrinsicLocationsBuilderARM64(ArenaAllocator* allocator, CodeGeneratorARM64* codegen) argument
43 : allocator_(allocator), codegen_(codegen) {}
/art/runtime/entrypoints/quick/
H A Dquick_alloc_entrypoints.h35 void SetQuickAllocEntryPointsAllocator(gc::AllocatorType allocator)
/art/compiler/trampolines/
H A Dtrampoline_compiler.cc60 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) {
64 ArmVIXLAssembler assembler(allocator);
101 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) {
102 Arm64Assembler assembler(allocator);
140 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) {
141 MipsAssembler assembler(allocator);
172 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) {
173 Mips64Assembler assembler(allocator);
203 static std::unique_ptr<const std::vector<uint8_t>> CreateTrampoline(ArenaAllocator* allocator, argument
205 X86Assembler assembler(allocator);
59 CreateTrampoline( ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) argument
100 CreateTrampoline( ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) argument
139 CreateTrampoline( ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) argument
171 CreateTrampoline( ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) argument
224 CreateTrampoline(ArenaAllocator* allocator, ThreadOffset64 offset) argument
[all...]
/art/libartbase/base/
H A Dallocator.h100 // Tracking allocator for use with STL types, tracks how much memory is used.
102 class TrackingAllocatorImpl : public std::allocator<T> {
104 typedef typename std::allocator<T>::value_type value_type;
105 typedef typename std::allocator<T>::size_type size_type;
106 typedef typename std::allocator<T>::difference_type difference_type;
107 typedef typename std::allocator<T>::pointer pointer;
108 typedef typename std::allocator<T>::const_pointer const_pointer;
109 typedef typename std::allocator<T>::reference reference;
110 typedef typename std::allocator<T>::const_reference const_reference;
122 // Enables an allocator fo
[all...]
/art/compiler/jni/quick/
H A Dcalling_convention.cc50 ArenaAllocator* allocator,
60 new (allocator) arm::ArmManagedRuntimeCallingConvention(
66 new (allocator) arm64::Arm64ManagedRuntimeCallingConvention(
72 new (allocator) mips::MipsManagedRuntimeCallingConvention(
78 new (allocator) mips64::Mips64ManagedRuntimeCallingConvention(
84 new (allocator) x86::X86ManagedRuntimeCallingConvention(
90 new (allocator) x86_64::X86_64ManagedRuntimeCallingConvention(
151 std::unique_ptr<JniCallingConvention> JniCallingConvention::Create(ArenaAllocator* allocator, argument
162 new (allocator) arm::ArmJniCallingConvention(
168 new (allocator) arm6
49 Create( ArenaAllocator* allocator, bool is_static, bool is_synchronized, const char* shorty, InstructionSet instruction_set) argument
[all...]
/art/test/130-hprof/src/
H A DMain.java48 Class<?> allocator = loader.loadClass("Allocator");
49 return allocator.getDeclaredMethod("allocObject", null).invoke(null);
135 Allocator allocator = new Allocator();
136 Dumper dumper = new Dumper(allocator);
137 allocator.start();
140 allocator.join();
164 Dumper(Allocator allocator) { argument
165 this.allocator = allocator;
167 Allocator allocator; field in class:Main.Dumper
[all...]
/art/compiler/jni/
H A Djni_cfi_test.cc65 ArenaAllocator allocator(&pool);
68 JniCallingConvention::Create(&allocator,
76 &allocator, is_static, is_synchronized, shorty, isa));
82 JNIMacroAssembler<kPointerSize>::Create(&allocator, isa));
/art/runtime/gc/allocator/
H A Ddlmalloc.h51 namespace allocator { namespace in namespace:art::gc
57 } // namespace allocator
/art/runtime/gc/space/
H A Drosalloc_space.cc45 // template class MemoryToolMallocSpace<RosAllocSpace, allocator::RosAlloc*>;
48 art::gc::allocator::RosAlloc* rosalloc, uint8_t* begin, uint8_t* end,
65 allocator::RosAlloc* rosalloc = CreateRosAlloc(mem_map->Begin(), starting_size, initial_size,
133 allocator::RosAlloc* RosAllocSpace::CreateRosAlloc(void* begin, size_t morecore_start,
142 allocator::RosAlloc* rosalloc = new art::gc::allocator::RosAlloc(
145 art::gc::allocator::RosAlloc::kPageReleaseModeAll :
146 art::gc::allocator::RosAlloc::kPageReleaseModeSizeAndEnd,
179 void* allocator, uint8_t* begin, uint8_t* end,
184 mem_map, initial_size_, name, reinterpret_cast<allocator
178 CreateInstance(MemMap* mem_map, const std::string& name, void* allocator, uint8_t* begin, uint8_t* end, uint8_t* limit, size_t growth_limit, bool can_move_objects) argument
413 namespace allocator { namespace in namespace:art::gc
[all...]

Completed in 6459 milliseconds

1234567