Commit 15e40c38 authored by Hannes Payer's avatar Hannes Payer Committed by Commit Bot

[heap] Remove unused CodeRange CommitRawMemory and UncommitRawMemory functions.

Change-Id: I14237a71c34872e114d7e2afb73a758e011fd731
Reviewed-on: https://chromium-review.googlesource.com/1051239Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Hannes Payer <hpayer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53092}
parent 5945e1cc
......@@ -227,18 +227,6 @@ Address CodeRange::AllocateRawMemory(const size_t requested_size,
return current.start;
}
bool CodeRange::CommitRawMemory(Address start, size_t length) {
return isolate_->heap()->memory_allocator()->CommitMemory(start, length);
}
bool CodeRange::UncommitRawMemory(Address start, size_t length) {
return virtual_memory_.SetPermissions(start, length,
PageAllocator::kNoAccess);
}
void CodeRange::FreeRawMemory(Address address, size_t length) {
DCHECK(IsAddressAligned(address, MemoryChunk::kAlignment));
base::LockGuard<base::Mutex> guard(&code_range_mutex_);
......
......@@ -1055,8 +1055,6 @@ class CodeRange {
V8_WARN_UNUSED_RESULT Address AllocateRawMemory(const size_t requested_size,
const size_t commit_size,
size_t* allocated);
bool CommitRawMemory(Address start, size_t length);
bool UncommitRawMemory(Address start, size_t length);
void FreeRawMemory(Address buf, size_t length);
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment