| Index: runtime/vm/virtual_memory_win.cc
|
| diff --git a/runtime/vm/virtual_memory_win.cc b/runtime/vm/virtual_memory_win.cc
|
| index ad44df43099d38a2912ccd2bab4f568196b8175a..42c4ff121ab1baa3a1ec5ea7ca1e7521d123e06d 100644
|
| --- a/runtime/vm/virtual_memory_win.cc
|
| +++ b/runtime/vm/virtual_memory_win.cc
|
| @@ -16,14 +16,12 @@ namespace dart {
|
|
|
| uword VirtualMemory::page_size_ = 0;
|
|
|
| -
|
| void VirtualMemory::InitOnce() {
|
| SYSTEM_INFO info;
|
| GetSystemInfo(&info);
|
| page_size_ = info.dwPageSize;
|
| }
|
|
|
| -
|
| VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
|
| void* address = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS);
|
| if (address == NULL) {
|
| @@ -33,7 +31,6 @@ VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
|
| return new VirtualMemory(region);
|
| }
|
|
|
| -
|
| VirtualMemory::~VirtualMemory() {
|
| if (!vm_owns_region() || (reserved_size_ == 0)) {
|
| return;
|
| @@ -43,7 +40,6 @@ VirtualMemory::~VirtualMemory() {
|
| }
|
| }
|
|
|
| -
|
| bool VirtualMemory::FreeSubSegment(int32_t handle,
|
| void* address,
|
| intptr_t size) {
|
| @@ -53,7 +49,6 @@ bool VirtualMemory::FreeSubSegment(int32_t handle,
|
| return false;
|
| }
|
|
|
| -
|
| bool VirtualMemory::Commit(uword addr,
|
| intptr_t size,
|
| bool executable,
|
| @@ -68,7 +63,6 @@ bool VirtualMemory::Commit(uword addr,
|
| return true;
|
| }
|
|
|
| -
|
| bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) {
|
| ASSERT(Thread::Current()->IsMutatorThread() ||
|
| Isolate::Current()->mutator_thread()->IsAtSafepoint());
|
|
|