OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef INCLUDE_DART_NATIVE_API_H_ | 7 #ifndef INCLUDE_DART_NATIVE_API_H_ |
8 #define INCLUDE_DART_NATIVE_API_H_ | 8 #define INCLUDE_DART_NATIVE_API_H_ |
9 | 9 |
10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } Dart_CObject_Type; | 45 } Dart_CObject_Type; |
46 | 46 |
47 typedef struct _Dart_CObject { | 47 typedef struct _Dart_CObject { |
48 Dart_CObject_Type type; | 48 Dart_CObject_Type type; |
49 union { | 49 union { |
50 bool as_bool; | 50 bool as_bool; |
51 int32_t as_int32; | 51 int32_t as_int32; |
52 int64_t as_int64; | 52 int64_t as_int64; |
53 double as_double; | 53 double as_double; |
54 char* as_string; | 54 char* as_string; |
55 char* as_bigint; | 55 struct { |
| 56 bool neg; |
| 57 intptr_t used; |
| 58 struct _Dart_CObject* digits; |
| 59 } as_bigint; |
56 Dart_Port as_send_port; | 60 Dart_Port as_send_port; |
57 struct { | 61 struct { |
58 intptr_t length; | 62 intptr_t length; |
59 struct _Dart_CObject** values; | 63 struct _Dart_CObject** values; |
60 } as_array; | 64 } as_array; |
61 struct { | 65 struct { |
62 Dart_TypedData_Type type; | 66 Dart_TypedData_Type type; |
63 intptr_t length; | 67 intptr_t length; |
64 uint8_t* values; | 68 uint8_t* values; |
65 } as_typed_data; | 69 } as_typed_data; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 147 |
144 /** | 148 /** |
145 * Forces all loaded classes and functions to be compiled eagerly in | 149 * Forces all loaded classes and functions to be compiled eagerly in |
146 * the current isolate.. | 150 * the current isolate.. |
147 * | 151 * |
148 * TODO(turnidge): Document. | 152 * TODO(turnidge): Document. |
149 */ | 153 */ |
150 DART_EXPORT Dart_Handle Dart_CompileAll(); | 154 DART_EXPORT Dart_Handle Dart_CompileAll(); |
151 | 155 |
152 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ | 156 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ |
OLD | NEW |