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

Side by Side Diff: runtime/bin/platform_fuchsia.cc

Issue 2204523002: Fuchsia: Use low-level prng call, add test, update test runner. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/sdk/@master
Patch Set: Fix bug Created 4 years, 4 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/bin/fuchsia_vm_tests.txt ('k') | runtime/bin/run_vm_tests_fuchsia.cc » ('j') | 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 "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(TARGET_OS_FUCHSIA) 6 #if defined(TARGET_OS_FUCHSIA)
7 7
8 #include "bin/platform.h" 8 #include "bin/platform.h"
9 9
10 #include <runtime/sysinfo.h> 10 #include <runtime/sysinfo.h>
(...skipping 10 matching lines...) Expand all
21 char* Platform::resolved_executable_name_ = NULL; 21 char* Platform::resolved_executable_name_ = NULL;
22 int Platform::script_index_ = 1; 22 int Platform::script_index_ = 1;
23 char** Platform::argv_ = NULL; 23 char** Platform::argv_ = NULL;
24 24
25 bool Platform::Initialize() { 25 bool Platform::Initialize() {
26 return true; 26 return true;
27 } 27 }
28 28
29 29
30 int Platform::NumberOfProcessors() { 30 int Platform::NumberOfProcessors() {
31 return mxr_get_nprocs(); 31 return mxr_get_nprocs_conf();
32 } 32 }
33 33
34 34
35 const char* Platform::OperatingSystem() { 35 const char* Platform::OperatingSystem() {
36 return "fuchsia"; 36 return "fuchsia";
37 } 37 }
38 38
39 39
40 const char* Platform::LibraryPrefix() { 40 const char* Platform::LibraryPrefix() {
41 return "lib"; 41 return "lib";
(...skipping 24 matching lines...) Expand all
66 66
67 67
68 void Platform::Exit(int exit_code) { 68 void Platform::Exit(int exit_code) {
69 exit(exit_code); 69 exit(exit_code);
70 } 70 }
71 71
72 } // namespace bin 72 } // namespace bin
73 } // namespace dart 73 } // namespace dart
74 74
75 #endif // defined(TARGET_OS_FUCHSIA) 75 #endif // defined(TARGET_OS_FUCHSIA)
OLDNEW
« no previous file with comments | « runtime/bin/fuchsia_vm_tests.txt ('k') | runtime/bin/run_vm_tests_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698