Home
last modified time | relevance | path

Searched refs:aligned_base (Results 1 – 6 of 6) sorted by relevance

/external/v8/src/base/platform/
Dplatform-fuchsia.cc80 uint8_t* aligned_base = reinterpret_cast<uint8_t*>( in Allocate() local
84 if (aligned_base != base) { in Allocate()
85 DCHECK_LT(base, aligned_base); in Allocate()
86 size_t prefix_size = static_cast<size_t>(aligned_base - base); in Allocate()
98 reinterpret_cast<uintptr_t>(aligned_base + aligned_size), in Allocate()
104 return static_cast<void*>(aligned_base); in Allocate()
Dplatform-cygwin.cc117 uint8_t* aligned_base = RoundUp(base, alignment); in Allocate() local
118 if (base == aligned_base) return reinterpret_cast<void*>(base); in Allocate()
130 aligned_base = nullptr; in Allocate()
138 aligned_base = RoundUp(base, alignment); in Allocate()
140 VirtualAlloc(aligned_base, size, flags, protect)); in Allocate()
145 DCHECK_IMPLIES(base, base == aligned_base); in Allocate()
Dplatform-starboard.cc198 uint8_t* aligned_base = RoundUpOld(base, alignment); in Allocate() local
199 if (aligned_base != base) { in Allocate()
200 DCHECK_LT(base, aligned_base); in Allocate()
201 size_t prefix_size = static_cast<size_t>(aligned_base - base); in Allocate()
209 CHECK(Free(aligned_base + size, suffix_size)); in Allocate()
214 return static_cast<void*>(aligned_base); in Allocate()
Dplatform-posix.cc371 uint8_t* aligned_base = reinterpret_cast<uint8_t*>( in Allocate() local
373 if (aligned_base != base) { in Allocate()
374 DCHECK_LT(base, aligned_base); in Allocate()
375 size_t prefix_size = static_cast<size_t>(aligned_base - base); in Allocate()
383 CHECK(Free(aligned_base + size, suffix_size)); in Allocate()
388 return static_cast<void*>(aligned_base); in Allocate()
Dplatform-win32.cc819 uint8_t* aligned_base = reinterpret_cast<uint8_t*>( in Allocate() local
821 if (base == aligned_base) return reinterpret_cast<void*>(base); in Allocate()
833 aligned_base = nullptr; in Allocate()
841 aligned_base = reinterpret_cast<uint8_t*>( in Allocate()
844 VirtualAlloc(aligned_base, size, flags, protect)); in Allocate()
849 DCHECK_IMPLIES(base, base == aligned_base); in Allocate()
/external/v8/src/heap/
Dmemory-allocator.cc116 Address aligned_base = RoundUp(base, MemoryChunk::kAlignment); in InitializeCodePageAllocator() local
118 RoundDown(reservation.size() - (aligned_base - base) - reserved_area, in InitializeCodePageAllocator()
120 DCHECK(IsAligned(aligned_base, kMinExpectedOSPageSize)); in InitializeCodePageAllocator()
128 page_allocator, aligned_base, size, in InitializeCodePageAllocator()