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

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

Issue 17406010: Move getters from Options to Platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed Dart_GetType Created 7 years, 6 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
« no previous file with comments | « pkg/scheduled_test/test/scheduled_process_test.dart ('k') | runtime/bin/common_patch.dart » ('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) 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/builtin.h" 5 #include "bin/builtin.h"
6 #include "bin/isolate_data.h" 6 #include "bin/isolate_data.h"
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 namespace dart { 9 namespace dart {
10 namespace bin { 10 namespace bin {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 Dart_Handle immutable_array_class = 51 Dart_Handle immutable_array_class =
52 Dart_HandleFromPersistent(isolate_data->immutable_array_class); 52 Dart_HandleFromPersistent(isolate_data->immutable_array_class);
53 bool builtin_array = 53 bool builtin_array =
54 (Dart_IdentityEquals(list_class, growable_object_array_class) || 54 (Dart_IdentityEquals(list_class, growable_object_array_class) ||
55 Dart_IdentityEquals(list_class, object_array_class) || 55 Dart_IdentityEquals(list_class, object_array_class) ||
56 Dart_IdentityEquals(list_class, immutable_array_class)); 56 Dart_IdentityEquals(list_class, immutable_array_class));
57 Dart_SetReturnValue(args, Dart_NewBoolean(builtin_array)); 57 Dart_SetReturnValue(args, Dart_NewBoolean(builtin_array));
58 Dart_ExitScope(); 58 Dart_ExitScope();
59 } 59 }
60 60
61
62 void FUNCTION_NAME(Common_GetVersion)(Dart_NativeArguments args) {
63 Dart_EnterScope();
64 Dart_SetReturnValue(args, Dart_NewStringFromCString(Dart_VersionString()));
65 Dart_ExitScope();
66 }
67
68 } // namespace bin 61 } // namespace bin
69 } // namespace dart 62 } // namespace dart
OLDNEW
« no previous file with comments | « pkg/scheduled_test/test/scheduled_process_test.dart ('k') | runtime/bin/common_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698