Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index 5a57a30a30dd3a7d78fd3999d5a4556005725133..b230e552a881e6007741f1846f889d3d5a8906a8 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -1273,8 +1273,7 @@ class V8_EXPORT_PRIVATE MemoryAllocator { |
// Initializes its internal bookkeeping structures. |
// Max capacity of the total space and executable memory limit. |
- bool SetUp(size_t max_capacity, size_t capacity_executable, |
- size_t code_range_size); |
+ bool SetUp(size_t max_capacity, size_t code_range_size); |
void TearDown(); |
@@ -1305,13 +1304,6 @@ class V8_EXPORT_PRIVATE MemoryAllocator { |
return capacity_ < size ? 0 : capacity_ - size; |
} |
- // Returns the maximum available executable bytes of heaps. |
- size_t AvailableExecutable() { |
- const size_t executable_size = SizeExecutable(); |
- if (capacity_executable_ < executable_size) return 0; |
- return capacity_executable_ - executable_size; |
- } |
- |
// Returns maximum available bytes that the old space can have. |
size_t MaxAvailable() { |
return (Available() / Page::kPageSize) * Page::kAllocatableMemory; |
@@ -1410,8 +1402,6 @@ class V8_EXPORT_PRIVATE MemoryAllocator { |
// Maximum space size in bytes. |
size_t capacity_; |
- // Maximum subset of capacity_ that can be executable |
- size_t capacity_executable_; |
// Allocated space size in bytes. |
base::AtomicNumber<size_t> size_; |