| Index: third_party/WebKit/Source/wtf/PageAllocator.h
|
| diff --git a/third_party/WebKit/Source/wtf/PageAllocator.h b/third_party/WebKit/Source/wtf/PageAllocator.h
|
| index 8db9fe30d96e99391bf95a6bcde234d1b326a194..5714f1692020b607e9fbf562bbbf1ef046f772b1 100644
|
| --- a/third_party/WebKit/Source/wtf/PageAllocator.h
|
| +++ b/third_party/WebKit/Source/wtf/PageAllocator.h
|
| @@ -126,6 +126,16 @@ WTF_EXPORT void recommitSystemPages(void* addr, size_t len);
|
| // len must be a multiple of kSystemPageSize bytes.
|
| WTF_EXPORT void discardSystemPages(void* addr, size_t len);
|
|
|
| +WTF_EXPORT ALWAYS_INLINE uintptr_t roundUpToSystemPage(uintptr_t address)
|
| +{
|
| + return (address + kSystemPageOffsetMask) & kSystemPageBaseMask;
|
| +}
|
| +
|
| +WTF_EXPORT ALWAYS_INLINE uintptr_t roundDownToSystemPage(uintptr_t address)
|
| +{
|
| + return address & kSystemPageBaseMask;
|
| +}
|
| +
|
| } // namespace WTF
|
|
|
| #endif // WTF_PageAllocator_h
|
|
|