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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 Dart_CObject_Internal* AsInternal(Dart_CObject* object) { | 102 Dart_CObject_Internal* AsInternal(Dart_CObject* object) { |
103 ASSERT(object->type >= Dart_CObject::kNumberOfTypes); | 103 ASSERT(object->type >= Dart_CObject::kNumberOfTypes); |
104 return reinterpret_cast<Dart_CObject_Internal*>(object); | 104 return reinterpret_cast<Dart_CObject_Internal*>(object); |
105 } | 105 } |
106 | 106 |
107 // Allocation of the structures for the decoded message happens | 107 // Allocation of the structures for the decoded message happens |
108 // either in the supplied zone or using the supplied allocation | 108 // either in the supplied zone or using the supplied allocation |
109 // function. | 109 // function. |
110 ReAlloc alloc_; | 110 ReAlloc alloc_; |
111 ApiGrowableArray<BackRefNode*> backward_references_; | 111 ApiGrowableArray<BackRefNode*> backward_references_; |
| 112 Dart_CObject** vm_symbol_references_; |
112 | 113 |
113 Dart_CObject type_arguments_marker; | 114 Dart_CObject type_arguments_marker; |
114 Dart_CObject dynamic_type_marker; | 115 Dart_CObject dynamic_type_marker; |
115 }; | 116 }; |
116 | 117 |
117 | 118 |
118 class ApiMessageWriter : public BaseWriter { | 119 class ApiMessageWriter : public BaseWriter { |
119 public: | 120 public: |
120 static const intptr_t kIncrementSize = 512; | 121 static const intptr_t kIncrementSize = 512; |
121 ApiMessageWriter(uint8_t** buffer, ReAlloc alloc) | 122 ApiMessageWriter(uint8_t** buffer, ReAlloc alloc) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 Dart_CObject** forward_list_; | 162 Dart_CObject** forward_list_; |
162 intptr_t forward_list_length_; | 163 intptr_t forward_list_length_; |
163 intptr_t forward_id_; | 164 intptr_t forward_id_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); | 166 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); |
166 }; | 167 }; |
167 | 168 |
168 } // namespace dart | 169 } // namespace dart |
169 | 170 |
170 #endif // VM_DART_API_MESSAGE_H_ | 171 #endif // VM_DART_API_MESSAGE_H_ |
OLD | NEW |