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

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

Issue 2117593002: Fuchsia: Initial check-in. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 5 months 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 | « runtime/vm/timeline.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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)
OLDNEW
« no previous file with comments | « runtime/vm/timeline.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698