/external/compiler-rt/test/asan/TestCases/Posix/ |
D | large_allocator_unpoisons_on_free.cc | 27 const long kPageSize = sysconf(_SC_PAGESIZE); in main() local 28 void *p = my_memalign(kPageSize, 1024 * 1024); in main() 31 char *q = (char *)mmap(p, kPageSize, PROT_READ | PROT_WRITE, in main() 35 memset(q, 42, kPageSize); in main() 37 munmap(q, kPageSize); in main()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_sync.cc | 124 const uptr kPageSize = GetPageSizeCached() * kMetaRatio; in ResetRange() local 125 if (sz <= 4 * kPageSize) { in ResetRange() 131 uptr diff = RoundUp(p, kPageSize) - p; in ResetRange() 137 diff = p + sz - RoundDown(p + sz, kPageSize); in ResetRange() 144 CHECK_EQ(p, RoundUp(p, kPageSize)); in ResetRange() 145 CHECK_EQ(sz, RoundUp(sz, kPageSize)); in ResetRange() 150 bool has_something = FreeRange(thr, pc, p, kPageSize); in ResetRange() 151 p += kPageSize; in ResetRange() 152 sz -= kPageSize; in ResetRange() 158 bool has_something = FreeRange(thr, pc, p - kPageSize, kPageSize); in ResetRange() [all …]
|
D | tsan_rtl.cc | 842 const uptr kPageSize = GetPageSizeCached(); in MemoryRangeSet() local 847 while ((p < begin + kPageSize / kShadowSize / 2) || ((uptr)p % kPageSize)) { in MemoryRangeSet() 854 p = RoundDown(end, kPageSize); in MemoryRangeSet()
|
/external/google-breakpad/src/client/windows/unittests/ |
D | exception_handler_death_test.cc | 416 const DWORD kPageSize = sSysInfo.dwPageSize; in TEST_F() local 423 kPageSize * 2, in TEST_F() 427 char* memory = all_memory + kPageSize; in TEST_F() 428 ASSERT_TRUE(VirtualAlloc(memory, kPageSize, in TEST_F() 508 const DWORD kPageSize = sSysInfo.dwPageSize; in TEST_F() local 511 const int kOffset = kPageSize - sizeof(instructions); in TEST_F() 515 kPageSize * 2, in TEST_F() 519 ASSERT_TRUE(VirtualAlloc(memory, kPageSize, in TEST_F()
|
/external/v8/test/cctest/ |
D | test-spaces.cc | 69 byte* mem = NewArray<byte>(2*Page::kPageSize); 73 Address page_start = RoundUp(start, Page::kPageSize); 86 CHECK(p->ObjectAreaEnd() == page_start + Page::kPageSize); 90 CHECK(p->Offset(page_start + Page::kPageSize) == Page::kPageSize); 93 CHECK(p->OffsetToAddress(Page::kPageSize) == p->ObjectAreaEnd()); 400 int lo_size = Page::kPageSize; in TEST()
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_test.cc | 78 int pm_res = posix_memalign((void**)&pm, kPageSize, kPageSize); in TEST() 84 int *ma = (int*)memalign(kPageSize, kPageSize); in TEST() 85 EXPECT_EQ(0U, (uintptr_t)ma % kPageSize); in TEST() 123 EXPECT_EQ(0U, (uintptr_t)a % kPageSize); in TEST() 130 char *a = (char*)pvalloc(kPageSize + 100); in TEST() 131 EXPECT_EQ(0U, (uintptr_t)a % kPageSize); in TEST() 132 a[kPageSize + 101] = 1; // we should not report an error here. in TEST() 136 EXPECT_EQ(0U, (uintptr_t)a % kPageSize); in TEST()
|
D | asan_test_utils.h | 63 static const int kPageSize = 4096; variable
|
/external/v8/src/mips/ |
D | simulator-mips.h | 88 static const int kPageSize = 1 << kPageShift; variable 89 static const int kPageMask = kPageSize - 1; 107 char data_[kPageSize]; // The cached data. 108 static const int kValidityMapSize = kPageSize >> kLineShift;
|
D | simulator-mips.cc | 877 int bytes_to_flush = CachePage::kPageSize - offset; in FlushICache() 906 DCHECK(size <= CachePage::kPageSize); in FlushOnePage()
|
/external/vixl/src/vixl/a64/ |
D | instructions-a64.cc | 302 base = AlignDown(base, kPageSize); in ImmPCOffsetTarget() 303 offset *= kPageSize; in ImmPCOffsetTarget() 344 uintptr_t this_page = reinterpret_cast<uintptr_t>(this) / kPageSize; in SetPCRelImmTarget() 345 uintptr_t target_page = reinterpret_cast<uintptr_t>(target) / kPageSize; in SetPCRelImmTarget()
|
D | instructions-a64.h | 46 const unsigned kPageSize = 4 * KBytes; variable
|
D | disasm-a64.cc | 3291 offset *= kPageSize; in SubstitutePCRelAddressField() 3292 base = AlignDown(base, kPageSize); in SubstitutePCRelAddressField()
|
/external/v8/src/arm/ |
D | simulator-arm.h | 76 static const int kPageSize = 1 << kPageShift; variable 77 static const int kPageMask = kPageSize - 1; 95 char data_[kPageSize]; // The cached data. 96 static const int kValidityMapSize = kPageSize >> kLineShift;
|
/external/v8/src/mips64/ |
D | simulator-mips64.h | 117 static const int kPageSize = 1 << kPageShift; variable 118 static const int kPageMask = kPageSize - 1; 136 char data_[kPageSize]; // The cached data. 137 static const int kValidityMapSize = kPageSize >> kLineShift;
|
/external/v8/src/heap/ |
D | spaces.cc | 200 if (aligned_requested >= (current.size - Page::kPageSize)) { in AllocateRawMemory() 263 capacity_ = RoundUp(capacity, Page::kPageSize); in SetUp() 264 capacity_executable_ = RoundUp(capacity_executable, Page::kPageSize); in SetUp() 401 Address area_end = start + Page::kPageSize; in Initialize() 404 MemoryChunk::Initialize(heap, start, Page::kPageSize, area_start, in Initialize() 830 return Page::kPageSize - static_cast<int>(base::OS::CommitPageSize()); in CodePageAreaEndOffset() 890 area_size_ = Page::kPageSize - Page::kObjectStartOffset; in PagedSpace() 893 (RoundDown(max_capacity, Page::kPageSize) / Page::kPageSize) * AreaSize(); in PagedSpace() 959 if ((Capacity() + Page::kPageSize) > max_capacity_) return false; in CanExpand() 1283 int rounded_new_capacity = RoundUp(new_capacity, Page::kPageSize); in Shrink() [all …]
|
D | store-buffer.cc | 167 {97, ((Page::kPageSize / kPointerSize) / 97) / 8}, in EnsureSpace() 168 {23, ((Page::kPageSize / kPointerSize) / 23) / 16}, in EnsureSpace() 169 {7, ((Page::kPageSize / kPointerSize) / 7) / 32}, in EnsureSpace() 170 {3, ((Page::kPageSize / kPointerSize) / 3) / 256}, in EnsureSpace()
|
D | spaces.h | 88 DCHECK((Page::kObjectStartOffset <= offset) && (offset <= Page::kPageSize)) 748 static const int kPageSize = 1 << kPageSizeBits; variable 754 static const int kMaxRegularHeapObjectSize = kPageSize - kObjectStartOffset; 910 DCHECK(size >= static_cast<size_t>(Page::kPageSize)); in FreeBlock() 915 DCHECK(size >= static_cast<size_t>(Page::kPageSize)); in FreeBlock() 982 static const int kSize = Page::kPageSize / kRegionSize; 984 STATIC_ASSERT(Page::kPageSize % kRegionSize == 0); 1032 return (Available() / Page::kPageSize) * Page::kMaxRegularHeapObjectSize; in MaxAvailable() 2369 return (to_space_.TotalCapacity() / Page::kPageSize) * in Capacity() 2722 if (chunk_size <= (Page::kPageSize + Page::kObjectStartOffset)) return 0; in ObjectSizeFor() [all …]
|
D | heap.cc | 62 initial_semispace_size_(Page::kPageSize), in Heap() 145 DCHECK(MB >= Page::kPageSize); in Heap() 1362 DCHECK((Page::kPageSize - MemoryChunk::kBodyOffset) % (2 * kPointerSize) == in Initialize() 4855 max_semi_space_size_ = Page::kPageSize; in ConfigureHeap() 4910 Max(static_cast<intptr_t>(paged_space_count * Page::kPageSize), in ConfigureHeap() 6045 MemoryChunk::FromAddress(chunk->address() + Page::kPageSize); in FreeQueuedChunks() 6051 Address area_end = Min(inner->address() + Page::kPageSize, chunk_end); in FreeQueuedChunks() 6055 inner->set_size(Page::kPageSize); in FreeQueuedChunks() 6058 inner = MemoryChunk::FromAddress(inner->address() + Page::kPageSize); in FreeQueuedChunks() 6076 p ^= 0xc1ead & (Page::kPageSize - 1); // Cleared. in RememberUnmappedPage() [all …]
|
D | heap.h | 1012 8 * (Page::kPageSize > MB ? Page::kPageSize : MB);
|
D | incremental-marking.cc | 325 chunk->size() > static_cast<size_t>(Page::kPageSize) && is_compacting) { in SetOldSpacePageFlags()
|
/external/compiler-rt/lib/msan/tests/ |
D | msan_test.cc | 118 const size_t kPageSize = 4096; variable 3178 EXPECT_EQ(0U, (uintptr_t)p % kPageSize); in TEST() 3185 EXPECT_EQ(0U, (uintptr_t)a % kPageSize); in TEST() 3192 void *p = pvalloc(kPageSize + 100); in TEST() 3193 EXPECT_EQ(0U, (uintptr_t)p % kPageSize); in TEST() 3194 EXPECT_EQ(2 * kPageSize, __sanitizer_get_allocated_size(p)); in TEST() 3198 EXPECT_EQ(0U, (uintptr_t)p % kPageSize); in TEST() 3199 EXPECT_EQ(kPageSize, __sanitizer_get_allocated_size(p)); in TEST()
|
/external/v8/src/ia32/ |
D | regexp-macro-assembler-ia32.cc | 695 const int kPageSize = 4096; in GetCode() local 696 const int kRegistersPerPage = kPageSize / kPointerSize; in GetCode()
|
/external/v8/src/x87/ |
D | regexp-macro-assembler-x87.cc | 694 const int kPageSize = 4096; in GetCode() local 695 const int kRegistersPerPage = kPageSize / kPointerSize; in GetCode()
|
/external/v8/src/x64/ |
D | regexp-macro-assembler-x64.cc | 744 const int kPageSize = 4096; in GetCode() local 745 const int kRegistersPerPage = kPageSize / kPointerSize; in GetCode()
|
/external/vixl/test/ |
D | test-assembler-a64.cc | 1738 SETUP_CUSTOM(2 * kPageSize, PageOffsetDependentCode); in TEST() 1744 kPageSize / kInstructionSize, in TEST() 1746 const uintptr_t kPageOffsetMask = kPageSize - 1; in TEST() 1778 VIXL_ASSERT(masm.SizeOfCodeGeneratedSince(&start) < kPageSize); in TEST() 1783 AlignDown(masm.GetLabelAddress<uint64_t*>(&start), kPageSize)); in TEST() 1799 VIXL_ASSERT(offset_into_page < kPageSize); in AdrpPageBoundaryHelper() 1802 const uintptr_t kPageOffsetMask = kPageSize - 1; in AdrpPageBoundaryHelper() 1808 const int kMaxCodeSize = (kEndPage - kStartPage + 2) * kPageSize; in AdrpPageBoundaryHelper() 1830 InstructionAccurateScope scope_page(&masm, kPageSize / kInstructionSize); in AdrpPageBoundaryHelper() 1834 for (size_t i = 2; i < (kPageSize / kInstructionSize); i += 2) { in AdrpPageBoundaryHelper() [all …]
|