| Index: src/spaces-inl.h
|
| diff --git a/src/spaces-inl.h b/src/spaces-inl.h
|
| index 070f97057710e669fcf9ca2e96f21b3702a87423..ca1177f33cd93ba97f535d5d79c88b4593bbea05 100644
|
| --- a/src/spaces-inl.h
|
| +++ b/src/spaces-inl.h
|
| @@ -378,35 +378,6 @@ bool MemoryAllocator::InInitialChunk(Address address) {
|
| }
|
|
|
|
|
| -#ifdef ENABLE_HEAP_PROTECTION
|
| -
|
| -void MemoryAllocator::Protect(Address start, size_t size) {
|
| - OS::Protect(start, size);
|
| -}
|
| -
|
| -
|
| -void MemoryAllocator::Unprotect(Address start,
|
| - size_t size,
|
| - Executability executable) {
|
| - OS::Unprotect(start, size, executable);
|
| -}
|
| -
|
| -
|
| -void MemoryAllocator::ProtectChunkFromPage(Page* page) {
|
| - int id = GetChunkId(page);
|
| - OS::Protect(chunks_[id].address(), chunks_[id].size());
|
| -}
|
| -
|
| -
|
| -void MemoryAllocator::UnprotectChunkFromPage(Page* page) {
|
| - int id = GetChunkId(page);
|
| - OS::Unprotect(chunks_[id].address(), chunks_[id].size(),
|
| - chunks_[id].owner()->executable() == EXECUTABLE);
|
| -}
|
| -
|
| -#endif
|
| -
|
| -
|
| // --------------------------------------------------------------------------
|
| // PagedSpace
|
|
|
|
|