| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "bin/platform.h" |
| 6 |
| 7 #include "include/dart_api.h" |
| 8 |
| 5 #include "bin/file.h" | 9 #include "bin/file.h" |
| 6 #include "bin/platform.h" | 10 #include "bin/utils.h" |
| 7 #include "include/dart_api.h" | |
| 8 | 11 |
| 9 namespace dart { | 12 namespace dart { |
| 10 namespace bin { | 13 namespace bin { |
| 11 | 14 |
| 12 void FUNCTION_NAME(Platform_NumberOfProcessors)(Dart_NativeArguments args) { | 15 void FUNCTION_NAME(Platform_NumberOfProcessors)(Dart_NativeArguments args) { |
| 13 Dart_EnterScope(); | 16 Dart_EnterScope(); |
| 14 Dart_SetReturnValue(args, Dart_NewInteger(Platform::NumberOfProcessors())); | 17 Dart_SetReturnValue(args, Dart_NewInteger(Platform::NumberOfProcessors())); |
| 15 Dart_ExitScope(); | 18 Dart_ExitScope(); |
| 16 } | 19 } |
| 17 | 20 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 74 } |
| 72 } | 75 } |
| 73 Platform::FreeEnvironment(env, count); | 76 Platform::FreeEnvironment(env, count); |
| 74 Dart_SetReturnValue(args, result); | 77 Dart_SetReturnValue(args, result); |
| 75 } | 78 } |
| 76 Dart_ExitScope(); | 79 Dart_ExitScope(); |
| 77 } | 80 } |
| 78 | 81 |
| 79 } // namespace bin | 82 } // namespace bin |
| 80 } // namespace dart | 83 } // namespace dart |
| OLD | NEW |