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 29 matching lines...) Expand all Loading... |
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 a double. | 46 // Allocates a Dart_CObject object for a double. |
47 Dart_CObject* AllocateDartCObjectDouble(double value); | 47 Dart_CObject* AllocateDartCObjectDouble(double value); |
48 // Allocates a Dart_CObject object for string data. | 48 // Allocates a Dart_CObject object for string data. |
49 Dart_CObject* AllocateDartCObjectString(intptr_t length); | 49 Dart_CObject* AllocateDartCObjectString(intptr_t length); |
| 50 // Allocates a C Dart_CObject object for byte data. |
| 51 Dart_CObject* AllocateDartCObjectByteArray(intptr_t length); |
50 // Allocates a C array of Dart_CObject objects. | 52 // Allocates a C array of Dart_CObject objects. |
51 Dart_CObject* AllocateDartCObjectArray(intptr_t length); | 53 Dart_CObject* AllocateDartCObjectArray(intptr_t length); |
52 | 54 |
53 void Init(); | 55 void Init(); |
54 | 56 |
55 intptr_t LookupInternalClass(intptr_t class_header); | 57 intptr_t LookupInternalClass(intptr_t class_header); |
56 Dart_CObject* ReadInlinedObject(intptr_t object_id); | 58 Dart_CObject* ReadInlinedObject(intptr_t object_id); |
57 Dart_CObject* ReadObjectImpl(intptr_t header); | 59 Dart_CObject* ReadObjectImpl(intptr_t header); |
58 Dart_CObject* ReadIndexedObject(intptr_t object_id); | 60 Dart_CObject* ReadIndexedObject(intptr_t object_id); |
59 Dart_CObject* ReadObject(); | 61 Dart_CObject* ReadObject(); |
(...skipping 12 matching lines...) Expand all Loading... |
72 ReAlloc alloc_; | 74 ReAlloc alloc_; |
73 ApiGrowableArray<Dart_CObject*> backward_references_; | 75 ApiGrowableArray<Dart_CObject*> backward_references_; |
74 | 76 |
75 Dart_CObject type_arguments_marker; | 77 Dart_CObject type_arguments_marker; |
76 Dart_CObject dynamic_type_marker; | 78 Dart_CObject dynamic_type_marker; |
77 }; | 79 }; |
78 | 80 |
79 } // namespace dart | 81 } // namespace dart |
80 | 82 |
81 #endif // VM_DART_API_MESSAGE_H_ | 83 #endif // VM_DART_API_MESSAGE_H_ |
OLD | NEW |