| Index: src/base/platform/platform.h
|
| diff --git a/src/base/platform/platform.h b/src/base/platform/platform.h
|
| index d3b6c9c1cf3d758276ccc39c50a20b51fc9f9f98..4f4d6070ea399459db41d0941430b1259fd67eca 100644
|
| --- a/src/base/platform/platform.h
|
| +++ b/src/base/platform/platform.h
|
| @@ -308,7 +308,7 @@ class VirtualMemory {
|
| ~VirtualMemory();
|
|
|
| // Returns whether the memory has been reserved.
|
| - bool IsReserved();
|
| + bool IsReserved() const;
|
|
|
| // Initialize or resets an embedded VirtualMemory object.
|
| void Reset();
|
| @@ -317,7 +317,7 @@ class VirtualMemory {
|
| // If the memory was reserved with an alignment, this address is not
|
| // necessarily aligned. The user might need to round it up to a multiple of
|
| // the alignment to get the start of the aligned block.
|
| - void* address() {
|
| + void* address() const {
|
| DCHECK(IsReserved());
|
| return address_;
|
| }
|
| @@ -326,7 +326,7 @@ class VirtualMemory {
|
| // meaningful when IsReserved() returns true.
|
| // If the memory was reserved with an alignment, this size may be larger
|
| // than the requested size.
|
| - size_t size() { return size_; }
|
| + size_t size() const { return size_; }
|
|
|
| // Commits real memory. Returns whether the operation succeeded.
|
| bool Commit(void* address, size_t size, bool is_executable);
|
|
|