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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // Returns true if this was the case. Otherwise, nothing is consumed. | 225 // Returns true if this was the case. Otherwise, nothing is consumed. |
226 bool ReadExpectedString(Handle<String> expected) WARN_UNUSED_RESULT; | 226 bool ReadExpectedString(Handle<String> expected) WARN_UNUSED_RESULT; |
227 | 227 |
228 // Like ReadObject, but skips logic for special cases in simulating the | 228 // Like ReadObject, but skips logic for special cases in simulating the |
229 // "stack machine". | 229 // "stack machine". |
230 MaybeHandle<Object> ReadObjectInternal() WARN_UNUSED_RESULT; | 230 MaybeHandle<Object> ReadObjectInternal() WARN_UNUSED_RESULT; |
231 | 231 |
232 // Reading V8 objects of specific kinds. | 232 // Reading V8 objects of specific kinds. |
233 // The tag is assumed to have already been read. | 233 // The tag is assumed to have already been read. |
234 MaybeHandle<String> ReadUtf8String() WARN_UNUSED_RESULT; | 234 MaybeHandle<String> ReadUtf8String() WARN_UNUSED_RESULT; |
| 235 MaybeHandle<String> ReadOneByteString() WARN_UNUSED_RESULT; |
235 MaybeHandle<String> ReadTwoByteString() WARN_UNUSED_RESULT; | 236 MaybeHandle<String> ReadTwoByteString() WARN_UNUSED_RESULT; |
236 MaybeHandle<JSObject> ReadJSObject() WARN_UNUSED_RESULT; | 237 MaybeHandle<JSObject> ReadJSObject() WARN_UNUSED_RESULT; |
237 MaybeHandle<JSArray> ReadSparseJSArray() WARN_UNUSED_RESULT; | 238 MaybeHandle<JSArray> ReadSparseJSArray() WARN_UNUSED_RESULT; |
238 MaybeHandle<JSArray> ReadDenseJSArray() WARN_UNUSED_RESULT; | 239 MaybeHandle<JSArray> ReadDenseJSArray() WARN_UNUSED_RESULT; |
239 MaybeHandle<JSDate> ReadJSDate() WARN_UNUSED_RESULT; | 240 MaybeHandle<JSDate> ReadJSDate() WARN_UNUSED_RESULT; |
240 MaybeHandle<JSValue> ReadJSValue(SerializationTag tag) WARN_UNUSED_RESULT; | 241 MaybeHandle<JSValue> ReadJSValue(SerializationTag tag) WARN_UNUSED_RESULT; |
241 MaybeHandle<JSRegExp> ReadJSRegExp() WARN_UNUSED_RESULT; | 242 MaybeHandle<JSRegExp> ReadJSRegExp() WARN_UNUSED_RESULT; |
242 MaybeHandle<JSMap> ReadJSMap() WARN_UNUSED_RESULT; | 243 MaybeHandle<JSMap> ReadJSMap() WARN_UNUSED_RESULT; |
243 MaybeHandle<JSSet> ReadJSSet() WARN_UNUSED_RESULT; | 244 MaybeHandle<JSSet> ReadJSSet() WARN_UNUSED_RESULT; |
244 MaybeHandle<JSArrayBuffer> ReadJSArrayBuffer() WARN_UNUSED_RESULT; | 245 MaybeHandle<JSArrayBuffer> ReadJSArrayBuffer() WARN_UNUSED_RESULT; |
(...skipping 29 matching lines...) Expand all Loading... |
274 Handle<FixedArray> id_map_; | 275 Handle<FixedArray> id_map_; |
275 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; | 276 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; |
276 | 277 |
277 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); | 278 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); |
278 }; | 279 }; |
279 | 280 |
280 } // namespace internal | 281 } // namespace internal |
281 } // namespace v8 | 282 } // namespace v8 |
282 | 283 |
283 #endif // V8_VALUE_SERIALIZER_H_ | 284 #endif // V8_VALUE_SERIALIZER_H_ |
OLD | NEW |