OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #ifndef BIN_DARTUTILS_H_ | 5 #ifndef BIN_DARTUTILS_H_ |
6 #define BIN_DARTUTILS_H_ | 6 #define BIN_DARTUTILS_H_ |
7 | 7 |
8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
9 #include "bin/globals.h" | 9 #include "bin/globals.h" |
10 | 10 |
11 #include "include/dart_api.h" | 11 #include "include/dart_api.h" |
12 | 12 |
13 class DartUtils { | 13 class DartUtils { |
14 public: | 14 public: |
15 static int64_t GetIntegerValue(Dart_Handle value_obj); | 15 static int64_t GetIntegerValue(Dart_Handle value_obj); |
16 static const char* GetStringValue(Dart_Handle str_obj); | 16 static const char* GetStringValue(Dart_Handle str_obj); |
17 static bool GetBooleanValue(Dart_Handle bool_obj); | 17 static bool GetBooleanValue(Dart_Handle bool_obj); |
18 static void SetIntegerInstanceField(Dart_Handle handle, | 18 static void SetIntegerInstanceField(Dart_Handle handle, |
19 const char* name, | 19 const char* name, |
20 intptr_t val); | 20 intptr_t val); |
21 static intptr_t GetIntegerInstanceField(Dart_Handle handle, | 21 static intptr_t GetIntegerInstanceField(Dart_Handle handle, |
22 const char* name); | 22 const char* name); |
23 static void SetStringInstanceField(Dart_Handle handle, | 23 static void SetStringInstanceField(Dart_Handle handle, |
24 const char* name, | 24 const char* name, |
25 const char* val); | 25 const char* val); |
26 | 26 |
27 static const char* kBuiltinLibURL; | 27 static const char* kBuiltinLibURL; |
28 static const char* kBuiltinLibSpec; | 28 static const char* kCoreLibURL; |
| 29 static const char* kCoreImplLibURL; |
| 30 static const char* kCoreNativeWrappersLibURL; |
29 | 31 |
30 static const char* kIdFieldName; | 32 static const char* kIdFieldName; |
31 private: | 33 private: |
32 DISALLOW_ALLOCATION(); | 34 DISALLOW_ALLOCATION(); |
33 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); | 35 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); |
34 }; | 36 }; |
35 | 37 |
36 #endif // BIN_DARTUTILS_H_ | 38 #endif // BIN_DARTUTILS_H_ |
OLD | NEW |