| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 MaybeHandle<JSValue> ReadJSValue(SerializationTag tag) WARN_UNUSED_RESULT; | 256 MaybeHandle<JSValue> ReadJSValue(SerializationTag tag) WARN_UNUSED_RESULT; |
| 257 MaybeHandle<JSRegExp> ReadJSRegExp() WARN_UNUSED_RESULT; | 257 MaybeHandle<JSRegExp> ReadJSRegExp() WARN_UNUSED_RESULT; |
| 258 MaybeHandle<JSMap> ReadJSMap() WARN_UNUSED_RESULT; | 258 MaybeHandle<JSMap> ReadJSMap() WARN_UNUSED_RESULT; |
| 259 MaybeHandle<JSSet> ReadJSSet() WARN_UNUSED_RESULT; | 259 MaybeHandle<JSSet> ReadJSSet() WARN_UNUSED_RESULT; |
| 260 MaybeHandle<JSArrayBuffer> ReadJSArrayBuffer() WARN_UNUSED_RESULT; | 260 MaybeHandle<JSArrayBuffer> ReadJSArrayBuffer() WARN_UNUSED_RESULT; |
| 261 MaybeHandle<JSArrayBuffer> ReadTransferredJSArrayBuffer(bool is_shared) | 261 MaybeHandle<JSArrayBuffer> ReadTransferredJSArrayBuffer(bool is_shared) |
| 262 WARN_UNUSED_RESULT; | 262 WARN_UNUSED_RESULT; |
| 263 MaybeHandle<JSArrayBufferView> ReadJSArrayBufferView( | 263 MaybeHandle<JSArrayBufferView> ReadJSArrayBufferView( |
| 264 Handle<JSArrayBuffer> buffer) WARN_UNUSED_RESULT; | 264 Handle<JSArrayBuffer> buffer) WARN_UNUSED_RESULT; |
| 265 MaybeHandle<JSObject> ReadWasmModule() WARN_UNUSED_RESULT; | 265 MaybeHandle<JSObject> ReadWasmModule() WARN_UNUSED_RESULT; |
| 266 MaybeHandle<JSObject> ReadWasmModuleTransfer() WARN_UNUSED_RESULT; |
| 266 MaybeHandle<JSObject> ReadHostObject() WARN_UNUSED_RESULT; | 267 MaybeHandle<JSObject> ReadHostObject() WARN_UNUSED_RESULT; |
| 267 | 268 |
| 268 /* | 269 /* |
| 269 * Reads key-value pairs into the object until the specified end tag is | 270 * Reads key-value pairs into the object until the specified end tag is |
| 270 * encountered. If successful, returns the number of properties read. | 271 * encountered. If successful, returns the number of properties read. |
| 271 */ | 272 */ |
| 272 Maybe<uint32_t> ReadJSObjectProperties(Handle<JSObject> object, | 273 Maybe<uint32_t> ReadJSObjectProperties(Handle<JSObject> object, |
| 273 SerializationTag end_tag, | 274 SerializationTag end_tag, |
| 274 bool can_use_transitions); | 275 bool can_use_transitions); |
| 275 | 276 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 290 Handle<FixedArray> id_map_; | 291 Handle<FixedArray> id_map_; |
| 291 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; | 292 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; |
| 292 | 293 |
| 293 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); | 294 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); |
| 294 }; | 295 }; |
| 295 | 296 |
| 296 } // namespace internal | 297 } // namespace internal |
| 297 } // namespace v8 | 298 } // namespace v8 |
| 298 | 299 |
| 299 #endif // V8_VALUE_SERIALIZER_H_ | 300 #endif // V8_VALUE_SERIALIZER_H_ |
| OLD | NEW |