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 #ifndef VM_DART_API_MESSAGE_H_ | 5 #ifndef VM_DART_API_MESSAGE_H_ |
6 #define VM_DART_API_MESSAGE_H_ | 6 #define VM_DART_API_MESSAGE_H_ |
7 | 7 |
8 #include "vm/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
9 #include "vm/snapshot.h" | 9 #include "vm/snapshot.h" |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 // Allocates a Dart_CObject object with the specified type. | 38 // Allocates a Dart_CObject object with the specified type. |
39 Dart_CObject* AllocateDartCObject(Dart_CObject::Type type); | 39 Dart_CObject* AllocateDartCObject(Dart_CObject::Type type); |
40 // Allocates a Dart_CObject object for the null object. | 40 // Allocates a Dart_CObject object for the null object. |
41 Dart_CObject* AllocateDartCObjectNull(); | 41 Dart_CObject* AllocateDartCObjectNull(); |
42 // Allocates a Dart_CObject object for a boolean object. | 42 // Allocates a Dart_CObject object for a boolean object. |
43 Dart_CObject* AllocateDartCObjectBool(bool value); | 43 Dart_CObject* AllocateDartCObjectBool(bool value); |
44 // Allocates a Dart_CObject object for for a 32-bit integer. | 44 // Allocates a Dart_CObject object for for a 32-bit integer. |
45 Dart_CObject* AllocateDartCObjectInt32(int32_t value); | 45 Dart_CObject* AllocateDartCObjectInt32(int32_t value); |
46 // Allocates a Dart_CObject object for for a 64-bit integer. | 46 // Allocates a Dart_CObject object for for a 64-bit integer. |
47 Dart_CObject* AllocateDartCObjectInt64(int64_t value); | 47 Dart_CObject* AllocateDartCObjectInt64(int64_t value); |
| 48 // Allocates a Dart_CObject object for bigint data. |
| 49 Dart_CObject* AllocateDartCObjectBigint(intptr_t length); |
48 // Allocates a Dart_CObject object for a double. | 50 // Allocates a Dart_CObject object for a double. |
49 Dart_CObject* AllocateDartCObjectDouble(double value); | 51 Dart_CObject* AllocateDartCObjectDouble(double value); |
50 // Allocates a Dart_CObject object for string data. | 52 // Allocates a Dart_CObject object for string data. |
51 Dart_CObject* AllocateDartCObjectString(intptr_t length); | 53 Dart_CObject* AllocateDartCObjectString(intptr_t length); |
52 // Allocates a C Dart_CObject object for byte data. | 54 // Allocates a C Dart_CObject object for byte data. |
53 Dart_CObject* AllocateDartCObjectByteArray(intptr_t length); | 55 Dart_CObject* AllocateDartCObjectByteArray(intptr_t length); |
54 // Allocates a C array of Dart_CObject objects. | 56 // Allocates a C array of Dart_CObject objects. |
55 Dart_CObject* AllocateDartCObjectArray(intptr_t length); | 57 Dart_CObject* AllocateDartCObjectArray(intptr_t length); |
56 | 58 |
57 void Init(); | 59 void Init(); |
(...skipping 18 matching lines...) Expand all Loading... |
76 ReAlloc alloc_; | 78 ReAlloc alloc_; |
77 ApiGrowableArray<Dart_CObject*> backward_references_; | 79 ApiGrowableArray<Dart_CObject*> backward_references_; |
78 | 80 |
79 Dart_CObject type_arguments_marker; | 81 Dart_CObject type_arguments_marker; |
80 Dart_CObject dynamic_type_marker; | 82 Dart_CObject dynamic_type_marker; |
81 }; | 83 }; |
82 | 84 |
83 } // namespace dart | 85 } // namespace dart |
84 | 86 |
85 #endif // VM_DART_API_MESSAGE_H_ | 87 #endif // VM_DART_API_MESSAGE_H_ |
OLD | NEW |