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

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

Issue 14752008: Final step towards loading core library scripts directly from the sources (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698