OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_OS_FUCHSIA) |
| 7 |
| 8 #include "vm/virtual_memory.h" |
| 9 |
| 10 #include <unistd.h> // NOLINT |
| 11 |
| 12 #include "platform/assert.h" |
| 13 #include "vm/os.h" |
| 14 |
| 15 namespace dart { |
| 16 |
| 17 uword VirtualMemory::page_size_ = 0; |
| 18 |
| 19 |
| 20 void VirtualMemory::InitOnce() { |
| 21 page_size_ = getpagesize(); |
| 22 } |
| 23 |
| 24 |
| 25 VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) { |
| 26 UNIMPLEMENTED(); |
| 27 return NULL; |
| 28 } |
| 29 |
| 30 |
| 31 VirtualMemory::~VirtualMemory() { |
| 32 UNIMPLEMENTED(); |
| 33 } |
| 34 |
| 35 |
| 36 bool VirtualMemory::FreeSubSegment(void* address, intptr_t size) { |
| 37 UNIMPLEMENTED(); |
| 38 return false; |
| 39 } |
| 40 |
| 41 |
| 42 bool VirtualMemory::Commit(uword addr, intptr_t size, bool executable) { |
| 43 UNIMPLEMENTED(); |
| 44 return false; |
| 45 } |
| 46 |
| 47 |
| 48 bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) { |
| 49 UNIMPLEMENTED(); |
| 50 return false; |
| 51 } |
| 52 |
| 53 } // namespace dart |
| 54 |
| 55 #endif // defined(TARGET_OS_FUCHSIA) |
OLD | NEW |