Home
last modified time | relevance | path

Searched refs:Allocate (Results 1 - 25 of 345) sorted by relevance

12345678910>>...14

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DBuddyAllocatorTests.cpp34 ASSERT_EQ(allocator.Allocate(maxBlockSize * 2), BuddyAllocator::kInvalidOffset); in TEST()
37 ASSERT_EQ(allocator.Allocate(0u), BuddyAllocator::kInvalidOffset); in TEST()
39 // Allocate the block. in TEST()
40 uint64_t blockOffset = allocator.Allocate(maxBlockSize); in TEST()
44 ASSERT_EQ(allocator.Allocate(maxBlockSize), BuddyAllocator::kInvalidOffset); in TEST()
61 ASSERT_EQ(allocator.Allocate(blockSize), blockSize * blocki); in TEST()
81 // Allocate block (splits two blocks). in TEST()
82 uint64_t blockOffset = allocator.Allocate(8); in TEST()
91 ASSERT_EQ(allocator.Allocate(maxBlockSize * 2), BuddyAllocator::kInvalidOffset); in TEST()
94 blockOffset = allocator.Allocate(maxBlockSiz in TEST()
[all...]
H A DRingBufferAllocatorTests.cpp34 ASSERT_EQ(allocator.Allocate(sizeInBytes + 1, ExecutionSerial(0)), in TEST()
38 ASSERT_EQ(allocator.Allocate(sizeInBytes / 2, ExecutionSerial(1)), 0u); in TEST()
39 ASSERT_EQ(allocator.Allocate(sizeInBytes / 2, ExecutionSerial(2)), 32000u); in TEST()
42 ASSERT_EQ(allocator.Allocate(1, ExecutionSerial(3)), RingBufferAllocator::kInvalidOffset); in TEST()
54 offset = allocator.Allocate(frameSizeInBytes, i); in TEST()
68 size_t offset = allocator.Allocate(frameSizeInBytes, ExecutionSerial(1)); in TEST()
73 offset = allocator.Allocate(frameSizeInBytes, ExecutionSerial(2)); in TEST()
78 offset = allocator.Allocate(frameSizeInBytes, ExecutionSerial(2)); in TEST()
99 allocator.Allocate(frameSizeInBytes, serial); in TEST()
110 ASSERT_EQ(allocator.Allocate(frameSizeInByte in TEST()
[all...]
H A DBuddyMemoryAllocatorTests.cpp47 ResourceMemoryAllocation Allocate(uint64_t allocationSize, uint64_t alignment = 1) { in Allocate() function in DummyBuddyResourceAllocator
49 mAllocator.Allocate(allocationSize, alignment); in Allocate()
79 ResourceMemoryAllocation invalidAllocation = allocator.Allocate(heapSize * 2); in TEST()
82 // Allocate one 128 byte allocation (same size as heap). in TEST()
83 ResourceMemoryAllocation allocation1 = allocator.Allocate(128); in TEST()
90 invalidAllocation = allocator.Allocate(128); in TEST()
112 ResourceMemoryAllocation invalidAllocation = allocator.Allocate(heapSize * 2); in TEST()
116 invalidAllocation = allocator.Allocate(maxBlockSize * 2); in TEST()
119 // Allocate two 128 byte allocations. in TEST()
120 ResourceMemoryAllocation allocation1 = allocator.Allocate(heapSiz in TEST()
[all...]
H A DSlabAllocatorTests.cpp39 Foo* obj = allocator.Allocate(4); in TEST()
45 // Allocate multiple objects and check their data is correct.
53 auto* ptr = allocator.Allocate(i); in TEST()
78 auto* ptr = allocator.Allocate(i); in TEST()
102 // Allocate a number of objects. in TEST()
105 EXPECT_TRUE(objects.insert(allocator.Allocate(i)).second); in TEST()
114 // Allocate objects again. All of the pointers should be the same. in TEST()
116 Foo* ptr = allocator.Allocate(i); in TEST()
136 // Allocate many objects. in TEST()
138 Foo* object = allocator.Allocate( in TEST()
[all...]
H A DCommandAllocatorTests.cpp79 CommandPipeline* pipeline = allocator.Allocate<CommandPipeline>(CommandType::Pipeline); in TEST()
83 CommandDraw* draw = allocator.Allocate<CommandDraw>(CommandType::Draw); in TEST()
125 allocator.Allocate<CommandPushConstants>(CommandType::PushConstants); in TEST()
167 CommandDraw* draw = allocator.Allocate<CommandDraw>(CommandType::Draw); in TEST()
211 CommandBig* big = allocator.Allocate<CommandBig>(CommandType::Big); in TEST()
245 CommandSmall* small = allocator.Allocate<CommandSmall>(CommandType::Small); in TEST()
286 CommandPipeline* pipeline = allocator.Allocate<CommandPipeline>(CommandType::Pipeline); in TEST()
290 CommandDraw* draw = allocator.Allocate<CommandDraw>(CommandType::Draw); in TEST()
374 // Test for overflows in Allocate's computations, size 1 variant
382 // Test for overflows in Allocate'
[all...]
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_memory.cpp40 Allocate (size); in dng_memory_data()
52 Allocate (count, elementSize); in dng_memory_data()
67 void dng_memory_data::Allocate (uint32 size) in Allocate() function in dng_memory_data
90 void dng_memory_data::Allocate (uint32 count, std::size_t elementSize) in Allocate() function in dng_memory_data
106 Allocate(numBytes); in Allocate()
131 dng_memory_block * result = allocator.Allocate (size); in Clone()
218 dng_memory_block * dng_memory_allocator::Allocate (uint32 size) in Allocate() function in dng_memory_allocator
H A Ddng_ref_counted_block.cpp40 Allocate (size); in dng_ref_counted_block()
55 void dng_ref_counted_block::Allocate (uint32 size) in Allocate() function in dng_ref_counted_block
172 Allocate ((uint32)possiblySharedHeader->fSize); in EnsureWriteable()
H A Ddng_string_list.cpp46 void dng_string_list::Allocate (uint32 minSize) in Allocate() function in dng_string_list
92 Allocate (fCount + 1); in Insert()
/third_party/node/deps/v8/include/cppgc/
H A Dallocation.h81 return MakeGarbageCollectedTraitInternal::Allocate( in Invoke()
94 return MakeGarbageCollectedTraitInternal::Allocate( in Invoke()
103 return MakeGarbageCollectedTraitInternal::Allocate( in Invoke()
117 return MakeGarbageCollectedTraitInternal::Allocate( in Invoke()
124 static void* CPPGC_DEFAULT_ALIGNED Allocate(cppgc::AllocationHandle&, size_t,
126 static void* CPPGC_DOUBLE_WORD_ALIGNED Allocate(cppgc::AllocationHandle&,
129 static void* CPPGC_DEFAULT_ALIGNED Allocate(cppgc::AllocationHandle&, size_t,
131 static void* CPPGC_DOUBLE_WORD_ALIGNED Allocate(cppgc::AllocationHandle&,
167 V8_INLINE static void* Allocate(AllocationHandle& handle, size_t size) { in Allocate() function in cppgc::MakeGarbageCollectedTraitBase
231 * - allocate through `MakeGarbageCollectedTraitBase<T>::Allocate`;
[all...]
/third_party/node/deps/v8/include/v8-include/cppgc/
H A Dallocation.h81 return MakeGarbageCollectedTraitInternal::Allocate( in Invoke()
94 return MakeGarbageCollectedTraitInternal::Allocate( in Invoke()
103 return MakeGarbageCollectedTraitInternal::Allocate( in Invoke()
117 return MakeGarbageCollectedTraitInternal::Allocate( in Invoke()
124 static void* CPPGC_DEFAULT_ALIGNED Allocate(cppgc::AllocationHandle&, size_t,
126 static void* CPPGC_DOUBLE_WORD_ALIGNED Allocate(cppgc::AllocationHandle&,
129 static void* CPPGC_DEFAULT_ALIGNED Allocate(cppgc::AllocationHandle&, size_t,
131 static void* CPPGC_DOUBLE_WORD_ALIGNED Allocate(cppgc::AllocationHandle&,
167 V8_INLINE static void* Allocate(AllocationHandle& handle, size_t size) { in Allocate() function in cppgc::MakeGarbageCollectedTraitBase
231 * - allocate through `MakeGarbageCollectedTraitBase<T>::Allocate`;
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DAllocator.h12 /// Allocate method accepting a size and alignment, and a Deallocate accepting
14 /// Allocate and Deallocate for setting size and alignment based on the final
42 /// Allocate() methods of LLVM-style allocators.
49 /// Allocate \a Size bytes of \a Alignment aligned memory. This method
51 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function in llvm::AllocatorBase
54 &AllocatorBase::Allocate) != in Allocate()
56 &DerivedT::Allocate), in Allocate()
58 "core Allocate(size_t, size_t) overload!"); in Allocate()
60 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate()
80 /// Allocate spac
81 template <typename T> T *Allocate(size_t Num = 1) { Allocate() function in llvm::AllocatorBase
98 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, Allocate() function in llvm::MallocAllocator
215 Allocate(size_t Size, Align Alignment) { Allocate() function in llvm::BumpPtrAllocatorImpl
271 Allocate(size_t Size, size_t Alignment) { Allocate() function in llvm::BumpPtrAllocatorImpl
496 T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); } Allocate() function in llvm::SpecificBumpPtrAllocator
[all...]
H A DRecyclingAllocator.h39 /// Allocate - Return a pointer to storage for an object of type
43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() function in llvm::RecyclingAllocator
45 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() function in llvm::RecyclingAllocator
66 return Allocator.Allocate(); in operator new()
H A DRecycler.h83 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() function in llvm::Recycler
89 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate()
93 T *Allocate(AllocatorType &Allocator) { in Allocate() function in llvm::Recycler
94 return Allocate<T>(Allocator); in Allocate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DAllocator.h13 /// Allocate method accepting a size and alignment, and a Deallocate accepting
15 /// Allocate and Deallocate for setting size and alignment based on the final
39 /// Allocate() methods of LLVM-style allocators.
46 /// \brief Allocate \a Size bytes of \a Alignment aligned memory. This method
48 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function in llvm::AllocatorBase
51 &AllocatorBase::Allocate) != in Allocate()
53 &DerivedT::Allocate), in Allocate()
55 "core Allocate(size_t, size_t) overload!"); in Allocate()
57 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate()
77 /// \brief Allocate spac
78 template <typename T> T *Allocate(size_t Num = 1) { Allocate() function in llvm::AllocatorBase
95 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, Allocate() function in llvm::MallocAllocator
212 Allocate(size_t Size, size_t Alignment) { Allocate() function in llvm::BumpPtrAllocatorImpl
413 T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); } Allocate() function in llvm::SpecificBumpPtrAllocator
[all...]
/third_party/node/deps/v8/src/heap/cppgc/
H A Dallocation.cc36 CPPGC_FORCE_ALWAYS_INLINE void* MakeGarbageCollectedTraitInternal::Allocate( in Allocate() function in cppgc::internal::MakeGarbageCollectedTraitInternal
44 CPPGC_FORCE_ALWAYS_INLINE void* MakeGarbageCollectedTraitInternal::Allocate( in Allocate() function in cppgc::internal::MakeGarbageCollectedTraitInternal
54 CPPGC_FORCE_ALWAYS_INLINE void* MakeGarbageCollectedTraitInternal::Allocate( in Allocate() function in cppgc::internal::MakeGarbageCollectedTraitInternal
64 CPPGC_FORCE_ALWAYS_INLINE void* MakeGarbageCollectedTraitInternal::Allocate( in Allocate() function in cppgc::internal::MakeGarbageCollectedTraitInternal
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DRenderPassEncoder.cpp124 allocator->Allocate<EndRenderPassCmd>(Command::EndRenderPass); in APIEndPass()
139 allocator->Allocate<SetStencilReferenceCmd>(Command::SetStencilReference); in APISetStencilReference()
152 allocator->Allocate<SetBlendConstantCmd>(Command::SetBlendConstant); in APISetBlendConstant()
198 SetViewportCmd* cmd = allocator->Allocate<SetViewportCmd>(Command::SetViewport); in APISetViewport()
229 allocator->Allocate<SetScissorRectCmd>(Command::SetScissorRect); in APISetScissorRect()
278 allocator->Allocate<ExecuteBundlesCmd>(Command::ExecuteBundles); in APIExecuteBundles()
337 allocator->Allocate<BeginOcclusionQueryCmd>(Command::BeginOcclusionQuery); in APIBeginOcclusionQuery()
359 allocator->Allocate<EndOcclusionQueryCmd>(Command::EndOcclusionQuery); in APIEndOcclusionQuery()
384 allocator->Allocate<WriteTimestampCmd>(Command::WriteTimestamp); in APIWriteTimestamp()
H A DProgrammableEncoder.cpp63 allocator->Allocate<InsertDebugMarkerCmd>(Command::InsertDebugMarker); in APIInsertDebugMarker()
83 allocator->Allocate<PopDebugGroupCmd>(Command::PopDebugGroup); in APIPopDebugGroup()
97 allocator->Allocate<PushDebugGroupCmd>(Command::PushDebugGroup); in APIPushDebugGroup()
193 SetBindGroupCmd* cmd = allocator->Allocate<SetBindGroupCmd>(Command::SetBindGroup); in RecordSetBindGroup()
H A DDynamicUploader.cpp63 startOffset = targetRingBuffer->mAllocator.Allocate(allocationSize, serial); in AllocateInternal()
73 startOffset = targetRingBuffer->mAllocator.Allocate(allocationSize, serial); in AllocateInternal()
78 // Allocate the staging buffer backing the ringbuffer. in AllocateInternal()
115 ResultOrError<UploadHandle> DynamicUploader::Allocate(uint64_t allocationSize, in Allocate() function in dawn_native::DynamicUploader
H A DRenderEncoderBase.cpp101 DrawCmd* draw = allocator->Allocate<DrawCmd>(Command::Draw); in APIDraw()
141 DrawIndexedCmd* draw = allocator->Allocate<DrawIndexedCmd>(Command::DrawIndexed); in APIDrawIndexed()
173 DrawIndirectCmd* cmd = allocator->Allocate<DrawIndirectCmd>(Command::DrawIndirect); in APIDrawIndirect()
205 allocator->Allocate<DrawIndexedIndirectCmd>(Command::DrawIndexedIndirect); in APIDrawIndexedIndirect()
259 allocator->Allocate<SetRenderPipelineCmd>(Command::SetRenderPipeline); in APISetPipeline()
314 allocator->Allocate<SetIndexBufferCmd>(Command::SetIndexBuffer); in APISetIndexBuffer()
371 allocator->Allocate<SetVertexBufferCmd>(Command::SetVertexBuffer); in APISetVertexBuffer()
H A DCommandAllocator.h35 // DrawCommand* cmd = allocator.Allocate<DrawCommand>(CommandType::Draw);
164 T* Allocate(E commandId) { in Allocate() function in dawn_native::CommandAllocator
169 Allocate(static_cast<uint32_t>(commandId), sizeof(T), alignof(T))); in Allocate()
206 DAWN_FORCE_INLINE uint8_t* Allocate(uint32_t commandId, in Allocate() function in dawn_native::CommandAllocator
249 return Allocate(detail::kAdditionalData, commandSize, commandAlignment); in AllocateData()
259 // Data used for the block range at initialization so that the first call to Allocate sees
261 // initialization in Allocate.
/third_party/node/deps/v8/src/compiler/
H A Dallocation-builder-inl.h18 void AllocationBuilder::Allocate(int size, AllocationType allocation, in Allocate() function in v8::internal::compiler::AllocationBuilder
24 allocation_ = graph()->NewNode(simplified()->Allocate(type, allocation), in Allocate()
34 Allocate(size, AllocationType::kYoung, Type::OtherInternal()); in AllocateContext()
59 Allocate(size, allocation, Type::OtherInternal()); in AllocateArray()
74 Allocate(size, allocation, Type::OtherInternal()); in AllocateSloppyArgumentElements()
/third_party/skia/third_party/externals/dawn/src/common/
H A DSlabAllocator.h95 // Allocate a new block of memory.
96 void* Allocate();
174 T* Allocate(Args&&... args) { in Allocate() function in SlabAllocator
175 void* ptr = SlabAllocatorImpl::Allocate(); in Allocate()
/third_party/node/deps/v8/src/objects/
H A Dordered-hash-table.cc20 MaybeHandle<Derived> OrderedHashTable<Derived, entrysize>::Allocate( in Allocate() function in v8::internal::OrderedHashTable
113 Allocate(isolate, kInitialCapacity, allocation_type).ToHandleChecked(); in Clear()
255 Derived::Allocate(isolate, new_capacity, in Rehash()
514 MaybeHandle<OrderedHashSet> OrderedHashSet::Allocate( in Allocate() function in v8::internal::OrderedHashSet
516 return Base::Allocate(isolate, capacity, allocation); in Allocate()
520 MaybeHandle<OrderedHashMap> OrderedHashMap::Allocate( in Allocate() function in v8::internal::OrderedHashMap
522 return Base::Allocate(isolate, capacity, allocation); in Allocate()
526 MaybeHandle<OrderedNameDictionary> OrderedNameDictionary::Allocate( in Allocate() function in v8::internal::OrderedNameDictionary
529 Base::Allocate(isolate, capacity, allocation); in Allocate()
574 template V8_EXPORT_PRIVATE MaybeHandle<OrderedHashSet> OrderedHashSet::Allocate(
651 SmallOrderedHashTable<SmallOrderedHashSet>::Allocate( Allocate() function in v8::internal::SmallOrderedHashTable
658 SmallOrderedHashTable<SmallOrderedHashMap>::Allocate( Allocate() function in v8::internal::SmallOrderedHashTable
665 SmallOrderedHashTable<SmallOrderedNameDictionary>::Allocate( Allocate() function in v8::internal::SmallOrderedHashTable
1082 OrderedHashTableHandler<SmallTable, LargeTable>::Allocate(Isolate* isolate, Allocate() function in v8::internal::OrderedHashTableHandler
[all...]
/third_party/mesa3d/src/gallium/frontends/nine/
H A Dresource9.c39 BOOL Allocate, in NineResource9_ctor()
47 DBG("This=%p pParams=%p initResource=%p Allocate=%d " in NineResource9_ctor()
49 This, pParams, initResource, (int) Allocate, in NineResource9_ctor()
60 if (Allocate) { in NineResource9_ctor()
36 NineResource9_ctor( struct NineResource9 *This, struct NineUnknownParams *pParams, struct pipe_resource *initResource, BOOL Allocate, D3DRESOURCETYPE Type, D3DPOOL Pool, DWORD Usage) NineResource9_ctor() argument
/third_party/skia/tests/
H A DPremulAlphaRoundTripTest.cpp120 GrPixmap src = GrPixmap::Allocate(upmInfo); in DEF_TEST()
128 GrPixmap surf = GrPixmap::Allocate(pmInfo); in DEF_TEST()
131 GrPixmap read1 = GrPixmap::Allocate(upmInfo); in DEF_TEST()
134 GrPixmap surf2 = GrPixmap::Allocate(pmInfo); in DEF_TEST()
137 GrPixmap read2 = GrPixmap::Allocate(upmInfo); in DEF_TEST()

Completed in 13 milliseconds

12345678910>>...14