| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_VALUE_SERIALIZER_H_ | 5 #ifndef V8_VALUE_SERIALIZER_H_ |
| 6 #define V8_VALUE_SERIALIZER_H_ | 6 #define V8_VALUE_SERIALIZER_H_ |
| 7 | 7 |
| 8 #include <cstdint> | 8 #include <cstdint> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 SerializationTag end_tag); | 217 SerializationTag end_tag); |
| 218 | 218 |
| 219 // Manipulating the map from IDs to reified objects. | 219 // Manipulating the map from IDs to reified objects. |
| 220 bool HasObjectWithID(uint32_t id); | 220 bool HasObjectWithID(uint32_t id); |
| 221 MaybeHandle<JSReceiver> GetObjectWithID(uint32_t id); | 221 MaybeHandle<JSReceiver> GetObjectWithID(uint32_t id); |
| 222 void AddObjectWithID(uint32_t id, Handle<JSReceiver> object); | 222 void AddObjectWithID(uint32_t id, Handle<JSReceiver> object); |
| 223 | 223 |
| 224 Isolate* const isolate_; | 224 Isolate* const isolate_; |
| 225 const uint8_t* position_; | 225 const uint8_t* position_; |
| 226 const uint8_t* const end_; | 226 const uint8_t* const end_; |
| 227 PretenureFlag pretenure_; |
| 227 uint32_t version_ = 0; | 228 uint32_t version_ = 0; |
| 228 uint32_t next_id_ = 0; | 229 uint32_t next_id_ = 0; |
| 229 | 230 |
| 230 // Always global handles. | 231 // Always global handles. |
| 231 Handle<SeededNumberDictionary> id_map_; | 232 Handle<SeededNumberDictionary> id_map_; |
| 232 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; | 233 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; |
| 233 | 234 |
| 234 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); | 235 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); |
| 235 }; | 236 }; |
| 236 | 237 |
| 237 } // namespace internal | 238 } // namespace internal |
| 238 } // namespace v8 | 239 } // namespace v8 |
| 239 | 240 |
| 240 #endif // V8_VALUE_SERIALIZER_H_ | 241 #endif // V8_VALUE_SERIALIZER_H_ |
| OLD | NEW |