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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Allocates a C Dart_CObject object for byte data. | 78 // Allocates a C Dart_CObject object for byte data. |
79 Dart_CObject* AllocateDartCObjectUint8Array(intptr_t length); | 79 Dart_CObject* AllocateDartCObjectUint8Array(intptr_t length); |
80 // Allocates a C array of Dart_CObject objects. | 80 // Allocates a C array of Dart_CObject objects. |
81 Dart_CObject* AllocateDartCObjectArray(intptr_t length); | 81 Dart_CObject* AllocateDartCObjectArray(intptr_t length); |
82 // Allocates a backwards reference node. | 82 // Allocates a backwards reference node. |
83 BackRefNode* AllocateBackRefNode(Dart_CObject* ref, DeserializeState state); | 83 BackRefNode* AllocateBackRefNode(Dart_CObject* ref, DeserializeState state); |
84 | 84 |
85 void Init(); | 85 void Init(); |
86 | 86 |
87 intptr_t LookupInternalClass(intptr_t class_header); | 87 intptr_t LookupInternalClass(intptr_t class_header); |
| 88 Dart_CObject* ReadVMIsolateObject(intptr_t value); |
88 Dart_CObject* ReadInternalVMObject(intptr_t class_id, intptr_t object_id); | 89 Dart_CObject* ReadInternalVMObject(intptr_t class_id, intptr_t object_id); |
89 Dart_CObject* ReadInlinedObject(intptr_t object_id); | 90 Dart_CObject* ReadInlinedObject(intptr_t object_id); |
90 Dart_CObject* ReadObjectImpl(); | 91 Dart_CObject* ReadObjectImpl(); |
91 Dart_CObject* ReadIndexedObject(intptr_t object_id); | 92 Dart_CObject* ReadIndexedObject(intptr_t object_id); |
92 Dart_CObject* ReadVMSymbol(intptr_t object_id); | 93 Dart_CObject* ReadVMSymbol(intptr_t object_id); |
93 Dart_CObject* ReadObjectRef(); | 94 Dart_CObject* ReadObjectRef(); |
94 Dart_CObject* ReadObject(); | 95 Dart_CObject* ReadObject(); |
95 | 96 |
96 // Add object to backward references. | 97 // Add object to backward references. |
97 void AddBackRef(intptr_t id, Dart_CObject* obj, DeserializeState state); | 98 void AddBackRef(intptr_t id, Dart_CObject* obj, DeserializeState state); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 Dart_CObject** forward_list_; | 163 Dart_CObject** forward_list_; |
163 intptr_t forward_list_length_; | 164 intptr_t forward_list_length_; |
164 intptr_t forward_id_; | 165 intptr_t forward_id_; |
165 | 166 |
166 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); | 167 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); |
167 }; | 168 }; |
168 | 169 |
169 } // namespace dart | 170 } // namespace dart |
170 | 171 |
171 #endif // VM_DART_API_MESSAGE_H_ | 172 #endif // VM_DART_API_MESSAGE_H_ |
OLD | NEW |