| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_OS_FUCHSIA) | 6 #if defined(TARGET_OS_FUCHSIA) |
| 7 | 7 |
| 8 #include "vm/virtual_memory.h" | 8 #include "vm/virtual_memory.h" |
| 9 | 9 |
| 10 #include <magenta/process.h> | |
| 11 #include <magenta/syscalls.h> | 10 #include <magenta/syscalls.h> |
| 12 #include <unistd.h> // NOLINT | 11 #include <unistd.h> // NOLINT |
| 13 | 12 |
| 14 #include "platform/assert.h" | 13 #include "platform/assert.h" |
| 15 #include "vm/memory_region.h" | 14 #include "vm/memory_region.h" |
| 16 #include "vm/os.h" | 15 #include "vm/os.h" |
| 17 | 16 |
| 18 namespace dart { | 17 namespace dart { |
| 19 | 18 |
| 20 uword VirtualMemory::page_size_ = 0; | 19 uword VirtualMemory::page_size_ = 0; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 84 |
| 86 | 85 |
| 87 bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) { | 86 bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) { |
| 88 // TODO(zra): Implement when Fuchsia has an mprotect-like call. | 87 // TODO(zra): Implement when Fuchsia has an mprotect-like call. |
| 89 return true; | 88 return true; |
| 90 } | 89 } |
| 91 | 90 |
| 92 } // namespace dart | 91 } // namespace dart |
| 93 | 92 |
| 94 #endif // defined(TARGET_OS_FUCHSIA) | 93 #endif // defined(TARGET_OS_FUCHSIA) |
| OLD | NEW |