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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 // Allocation of the structures for the decoded message happens | 130 // Allocation of the structures for the decoded message happens |
131 // either in the supplied zone or using the supplied allocation | 131 // either in the supplied zone or using the supplied allocation |
132 // function. | 132 // function. |
133 ReAlloc alloc_; | 133 ReAlloc alloc_; |
134 ApiGrowableArray<BackRefNode*> backward_references_; | 134 ApiGrowableArray<BackRefNode*> backward_references_; |
135 Dart_CObject** vm_symbol_references_; | 135 Dart_CObject** vm_symbol_references_; |
136 | 136 |
137 Dart_CObject type_arguments_marker; | 137 Dart_CObject type_arguments_marker; |
138 Dart_CObject dynamic_type_marker; | 138 Dart_CObject dynamic_type_marker; |
| 139 static _Dart_CObject* singleton_uint32_typed_data_; |
139 }; | 140 }; |
140 | 141 |
141 | 142 |
142 class ApiMessageWriter : public BaseWriter { | 143 class ApiMessageWriter : public BaseWriter { |
143 public: | 144 public: |
144 static const intptr_t kInitialSize = 512; | 145 static const intptr_t kInitialSize = 512; |
145 ApiMessageWriter(uint8_t** buffer, ReAlloc alloc) | 146 ApiMessageWriter(uint8_t** buffer, ReAlloc alloc) |
146 : BaseWriter(buffer, alloc, kInitialSize), | 147 : BaseWriter(buffer, alloc, kInitialSize), |
147 object_id_(0), forward_list_(NULL), | 148 object_id_(0), forward_list_(NULL), |
148 forward_list_length_(0), forward_id_(0) { | 149 forward_list_length_(0), forward_id_(0) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 Dart_CObject** forward_list_; | 187 Dart_CObject** forward_list_; |
187 intptr_t forward_list_length_; | 188 intptr_t forward_list_length_; |
188 intptr_t forward_id_; | 189 intptr_t forward_id_; |
189 | 190 |
190 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); | 191 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); |
191 }; | 192 }; |
192 | 193 |
193 } // namespace dart | 194 } // namespace dart |
194 | 195 |
195 #endif // VM_DART_API_MESSAGE_H_ | 196 #endif // VM_DART_API_MESSAGE_H_ |
OLD | NEW |