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/os.h" | 8 #include "vm/os.h" |
9 | 9 |
10 #include <errno.h> | 10 #include <errno.h> |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 UNIMPLEMENTED(); | 148 UNIMPLEMENTED(); |
149 return false; | 149 return false; |
150 } | 150 } |
151 | 151 |
152 | 152 |
153 int OS::NumberOfAvailableProcessors() { | 153 int OS::NumberOfAvailableProcessors() { |
154 return sysconf(_SC_NPROCESSORS_CONF); | 154 return sysconf(_SC_NPROCESSORS_CONF); |
155 } | 155 } |
156 | 156 |
157 | 157 |
| 158 uintptr_t OS::MaxRSS() { |
| 159 UNIMPLEMENTED(); |
| 160 return 0; |
| 161 } |
| 162 |
| 163 |
158 void OS::Sleep(int64_t millis) { | 164 void OS::Sleep(int64_t millis) { |
159 mx_nanosleep( | 165 mx_nanosleep( |
160 millis * kMicrosecondsPerMillisecond * kNanosecondsPerMicrosecond); | 166 millis * kMicrosecondsPerMillisecond * kNanosecondsPerMicrosecond); |
161 } | 167 } |
162 | 168 |
163 | 169 |
164 void OS::SleepMicros(int64_t micros) { | 170 void OS::SleepMicros(int64_t micros) { |
165 mx_nanosleep( | 171 mx_nanosleep( |
166 micros * kNanosecondsPerMicrosecond); | 172 micros * kNanosecondsPerMicrosecond); |
167 } | 173 } |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 } | 308 } |
303 | 309 |
304 | 310 |
305 void OS::Exit(int code) { | 311 void OS::Exit(int code) { |
306 UNIMPLEMENTED(); | 312 UNIMPLEMENTED(); |
307 } | 313 } |
308 | 314 |
309 } // namespace dart | 315 } // namespace dart |
310 | 316 |
311 #endif // defined(TARGET_OS_FUCHSIA) | 317 #endif // defined(TARGET_OS_FUCHSIA) |
OLD | NEW |