| Index: src/value-serializer.h
|
| diff --git a/src/value-serializer.h b/src/value-serializer.h
|
| index 83e93f5054fde71f87ba20e61dbef9bb2d45d028..efb5a9675393ddc0f5dbb026f356e395ff59a9e9 100644
|
| --- a/src/value-serializer.h
|
| +++ b/src/value-serializer.h
|
| @@ -113,9 +113,20 @@ class ValueDeserializer {
|
| */
|
| MaybeHandle<Object> ReadObject() WARN_UNUSED_RESULT;
|
|
|
| + /*
|
| + * Reads an object, consuming the entire buffer.
|
| + *
|
| + * This is required for the legacy "version 0" format, which did not allow
|
| + * reference deduplication, and instead relied on a "stack" model for
|
| + * deserializing, with the contents of objects and arrays provided first.
|
| + */
|
| + MaybeHandle<Object> ReadObjectUsingEntireBufferForLegacyFormat()
|
| + WARN_UNUSED_RESULT;
|
| +
|
| private:
|
| // Reading the wire format.
|
| Maybe<SerializationTag> PeekTag() const WARN_UNUSED_RESULT;
|
| + void ConsumeTag(SerializationTag peeked_tag);
|
| Maybe<SerializationTag> ReadTag() WARN_UNUSED_RESULT;
|
| template <typename T>
|
| Maybe<T> ReadVarint() WARN_UNUSED_RESULT;
|
|
|