aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/base/bounded-page-allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/base/bounded-page-allocator.h')
-rw-r--r--deps/v8/src/base/bounded-page-allocator.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/deps/v8/src/base/bounded-page-allocator.h b/deps/v8/src/base/bounded-page-allocator.h
index e3d928618b..b1289c4c62 100644
--- a/deps/v8/src/base/bounded-page-allocator.h
+++ b/deps/v8/src/base/bounded-page-allocator.h
@@ -53,15 +53,19 @@ class V8_BASE_EXPORT BoundedPageAllocator : public v8::PageAllocator {
return page_allocator_->GetRandomMmapAddr();
}
- void* AllocatePages(void* address, size_t size, size_t alignment,
- PageAllocator::Permission access) override;
+ void* AllocatePages(void* hint, size_t size, size_t alignment,
+ Permission access) override;
+
+ // Allocates pages at given address, returns true on success.
+ bool AllocatePagesAt(Address address, size_t size, Permission access);
bool FreePages(void* address, size_t size) override;
bool ReleasePages(void* address, size_t size, size_t new_size) override;
- bool SetPermissions(void* address, size_t size,
- PageAllocator::Permission access) override;
+ bool SetPermissions(void* address, size_t size, Permission access) override;
+
+ bool DiscardSystemPages(void* address, size_t size) override;
private:
v8::base::Mutex mutex_;