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 "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 #include "vm/dart_api_state.h" | 9 #include "vm/dart_api_state.h" |
10 #include "vm/snapshot.h" | 10 #include "vm/snapshot.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 Dart_CObject_Internal* AsInternal(Dart_CObject* object) { | 130 Dart_CObject_Internal* AsInternal(Dart_CObject* object) { |
131 ASSERT(object->type >= Dart_CObject_kNumberOfTypes); | 131 ASSERT(object->type >= Dart_CObject_kNumberOfTypes); |
132 return reinterpret_cast<Dart_CObject_Internal*>(object); | 132 return reinterpret_cast<Dart_CObject_Internal*>(object); |
133 } | 133 } |
134 | 134 |
135 RawObject* VmIsolateSnapshotObject(intptr_t index) const { | 135 RawObject* VmIsolateSnapshotObject(intptr_t index) const { |
136 return Object::vm_isolate_snapshot_object_table().At(index); | 136 return Object::vm_isolate_snapshot_object_table().At(index); |
137 } | 137 } |
138 | 138 |
139 Dart_CObject* CreateDartCObjectString(RawObject* raw); | 139 Dart_CObject* CreateDartCObjectString(RawObject* raw); |
| 140 Dart_CObject* GetCanonicalMintObject(Dart_CObject_Type type, |
| 141 int64_t value64); |
140 | 142 |
141 // Allocation of the structures for the decoded message happens | 143 // Allocation of the structures for the decoded message happens |
142 // either in the supplied zone or using the supplied allocation | 144 // either in the supplied zone or using the supplied allocation |
143 // function. | 145 // function. |
144 ReAlloc alloc_; | 146 ReAlloc alloc_; |
145 ApiGrowableArray<BackRefNode*> backward_references_; | 147 ApiGrowableArray<BackRefNode*> backward_references_; |
| 148 ApiGrowableArray<Dart_CObject*> vm_isolate_references_; |
146 Dart_CObject** vm_symbol_references_; | 149 Dart_CObject** vm_symbol_references_; |
147 intptr_t max_vm_isolate_object_id_; | 150 intptr_t max_vm_isolate_object_id_; |
148 | 151 |
149 Dart_CObject type_arguments_marker; | 152 Dart_CObject type_arguments_marker; |
150 Dart_CObject dynamic_type_marker; | 153 Dart_CObject dynamic_type_marker; |
151 static _Dart_CObject* singleton_uint32_typed_data_; | 154 static _Dart_CObject* singleton_uint32_typed_data_; |
152 }; | 155 }; |
153 | 156 |
154 | 157 |
155 class ApiMessageWriter : public BaseWriter { | 158 class ApiMessageWriter : public BaseWriter { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 intptr_t forward_list_length_; | 203 intptr_t forward_list_length_; |
201 intptr_t forward_id_; | 204 intptr_t forward_id_; |
202 intptr_t max_vm_isolate_object_id_; | 205 intptr_t max_vm_isolate_object_id_; |
203 | 206 |
204 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); | 207 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); |
205 }; | 208 }; |
206 | 209 |
207 } // namespace dart | 210 } // namespace dart |
208 | 211 |
209 #endif // VM_DART_API_MESSAGE_H_ | 212 #endif // VM_DART_API_MESSAGE_H_ |
OLD | NEW |