Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: runtime/vm/virtual_memory_fuchsia.cc

Issue 2461393003: Remove use of magenta/process.h. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698