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/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 Loading... |
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 |
61 } // namespace bin | 68 } // namespace bin |
62 } // namespace dart | 69 } // namespace dart |
OLD | NEW |