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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Allocates a Dart_CObject object for bigint data. | 67 // Allocates a Dart_CObject object for bigint data. |
68 Dart_CObject* AllocateDartCObjectBigint(intptr_t length); | 68 Dart_CObject* AllocateDartCObjectBigint(intptr_t length); |
69 // Allocates a Dart_CObject object for a double. | 69 // Allocates a Dart_CObject object for a double. |
70 Dart_CObject* AllocateDartCObjectDouble(double value); | 70 Dart_CObject* AllocateDartCObjectDouble(double value); |
71 // Allocates a Dart_CObject object for string data. | 71 // Allocates a Dart_CObject object for string data. |
72 Dart_CObject* AllocateDartCObjectString(intptr_t length); | 72 Dart_CObject* AllocateDartCObjectString(intptr_t length); |
73 // Allocates a C Dart_CObject object for byte data. | 73 // Allocates a C Dart_CObject object for byte data. |
74 Dart_CObject* AllocateDartCObjectUint8Array(intptr_t length); | 74 Dart_CObject* AllocateDartCObjectUint8Array(intptr_t length); |
75 // Allocates a C array of Dart_CObject objects. | 75 // Allocates a C array of Dart_CObject objects. |
76 Dart_CObject* AllocateDartCObjectArray(intptr_t length); | 76 Dart_CObject* AllocateDartCObjectArray(intptr_t length); |
| 77 // Allocates a Dart_CObject for GrowableObjectArray. |
| 78 Dart_CObject* AllocateDartCObjectGrowableObjectArray(intptr_t length); |
77 // Allocates a backwards reference node. | 79 // Allocates a backwards reference node. |
78 BackRefNode* AllocateBackRefNode(Dart_CObject* ref, DeserializeState state); | 80 BackRefNode* AllocateBackRefNode(Dart_CObject* ref, DeserializeState state); |
79 | 81 |
80 void Init(); | 82 void Init(); |
81 | 83 |
82 intptr_t LookupInternalClass(intptr_t class_header); | 84 intptr_t LookupInternalClass(intptr_t class_header); |
83 Dart_CObject* ReadInternalVMObject(intptr_t class_id, intptr_t object_id); | 85 Dart_CObject* ReadInternalVMObject(intptr_t class_id, intptr_t object_id); |
84 Dart_CObject* ReadInlinedObject(intptr_t object_id); | 86 Dart_CObject* ReadInlinedObject(intptr_t object_id); |
85 Dart_CObject* ReadObjectImpl(); | 87 Dart_CObject* ReadObjectImpl(); |
86 Dart_CObject* ReadIndexedObject(intptr_t object_id); | 88 Dart_CObject* ReadIndexedObject(intptr_t object_id); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 Dart_CObject** forward_list_; | 157 Dart_CObject** forward_list_; |
156 intptr_t forward_list_length_; | 158 intptr_t forward_list_length_; |
157 intptr_t forward_id_; | 159 intptr_t forward_id_; |
158 | 160 |
159 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); | 161 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); |
160 }; | 162 }; |
161 | 163 |
162 } // namespace dart | 164 } // namespace dart |
163 | 165 |
164 #endif // VM_DART_API_MESSAGE_H_ | 166 #endif // VM_DART_API_MESSAGE_H_ |
OLD | NEW |