Home
last modified time | relevance | path

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

12

/third_party/node/deps/v8/src/base/
Dmacros.h326 inline T RoundDown(T x, intptr_t m) { in RoundDown() function
333 constexpr inline T RoundDown(T x) { in RoundDown() function
344 return RoundDown<T>(static_cast<T>(x + m - 1), m); in RoundUp()
349 return RoundDown<m, T>(static_cast<T>(x + (m - 1))); in RoundUp()
Demulated-virtual-address-subspace.cc44 return RoundDown(addr, allocation_granularity()); in RandomPageAddress()
80 hint = RoundDown(hint, alignment); in AllocatePages()
Dvirtual-address-space.cc222 return RoundDown(addr, allocation_granularity()); in RandomPageAddress()
/third_party/node/deps/v8/src/sandbox/
Dsandbox.cc185 Address hint = RoundDown(vas->RandomPageAddress(), kSandboxAlignment); in Initialize()
263 hint = RoundDown(hint, kSandboxAlignment); in InitializeAsPartiallyReservedSandbox()
/third_party/node/deps/v8/src/execution/arm64/
Dframe-constants-arm64.cc27 return RoundDown(register_count, 2) + 1; in RegisterStackSlotCount()
/third_party/node/deps/v8/src/heap/cppgc/
Dobject-allocator.cc39 ? RoundDown(offset_begin, kEntrySize) in MarkRangeAsYoung()
43 : RoundDown(offset_end, kEntrySize); in MarkRangeAsYoung()
Dcaged-heap-local-data.cc37 RoundDown(reinterpret_cast<uintptr_t>(table_.data() + table_.size()), in Reset()
Dcaged-heap.cc36 void* hint = reinterpret_cast<void*>(RoundDown( in ReserveCagedHeap()
Dsweeper.cc95 RoundDown(reinterpret_cast<uintptr_t>(unused_range.second), in Free()
/third_party/node/deps/v8/src/utils/
Dallocation.cc377 RoundDown(params.requested_start_hint, in InitReservation()
392 RoundDown(params.requested_start_hint, in InitReservation()
458 RoundDown(params.reservation_size - (allocatable_base - base_) - in InitReservation()
/third_party/node/deps/v8/src/heap/base/
Dactive-system-pages.cc37 RoundDown(start, page_size) >> page_size_bits; in Add()
/third_party/node/deps/v8/src/common/
Dptr-compr-inl.h36 return RoundDown<kPtrComprCageBaseAlignment>(on_heap_addr); in GetPtrComprCageBaseAddress()
/third_party/node/deps/v8/src/zone/
Daccounting-allocator.cc33 void* hint = reinterpret_cast<void*>(RoundDown( in ReserveAddressSpace()
Dzone.cc134 DCHECK_EQ(size, RoundDown(size, kAlignmentInBytes)); in NewExpand()
/third_party/node/deps/v8/src/heap/
Dspaces.h155 return RoundDown(size, kCodeAlignment); in RoundSizeDownToObjectAlignment()
157 return RoundDown(size, kTaggedSize); in RoundSizeDownToObjectAlignment()
Dnew-spaces.cc106 minimum_capacity_ = RoundDown(initial_capacity, Page::kPageSize); in SetUp()
108 maximum_capacity_ = RoundDown(maximum_capacity, Page::kPageSize); in SetUp()
Dspaces.cc148 size_t unused = RoundDown(static_cast<size_t>(area_end() - filler.address()), in ShrinkToHighWaterMark()
Dpaged-spaces.h552 return RoundDown(size, Map::kSize); in RoundSizeDownToObjectAlignment()
Dmemory-allocator.cc648 Address discardable_end = RoundDown(addr + size, page_size); in ComputeDiscardMemoryArea()
Dread-only-spaces.cc730 size_t unused = RoundDown(static_cast<size_t>(area_end() - filler.address()), in ShrinkToHighWaterMark()
/third_party/node/deps/v8/src/base/platform/
Dplatform-linux.cc188 RoundDown(std::min(gap_end, boundary_end), alignment); in GetFreeMemoryRangesWithin()
Dplatform-posix.cc188 RoundDown(reinterpret_cast<uintptr_t>(result) + size, kHugePageSize); in Allocate()
316 raw_addr = RoundDown(raw_addr, AllocatePageSize()); in GetRandomMmapAddr()
/third_party/node/deps/v8/src/init/
Disolate-allocator.cc196 RoundDown(isolate_address, commit_page_size); in CommitPagesForIsolate()
/third_party/node/deps/v8/src/wasm/
Dwasm-code-manager.cc831 Address begin = RoundDown(region.begin(), commit_page_size); in MakeWritable()
858 RoundDown(region.begin(), commit_page_size)); in FreeCode()
860 std::min(RoundDown(merged_region.end(), commit_page_size), in FreeCode()
/third_party/node/deps/v8/src/objects/
Dcode.cc698 DCHECK_LE(RoundDown(age_addr, kTaggedSize) + kTaggedSize, address() + Size()); in MakeOlder()

12