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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void WriteString(Handle<String> string); | 105 void WriteString(Handle<String> string); |
106 Maybe<bool> WriteJSReceiver(Handle<JSReceiver> receiver) WARN_UNUSED_RESULT; | 106 Maybe<bool> WriteJSReceiver(Handle<JSReceiver> receiver) WARN_UNUSED_RESULT; |
107 Maybe<bool> WriteJSObject(Handle<JSObject> object) WARN_UNUSED_RESULT; | 107 Maybe<bool> WriteJSObject(Handle<JSObject> object) WARN_UNUSED_RESULT; |
108 Maybe<bool> WriteJSObjectSlow(Handle<JSObject> object) WARN_UNUSED_RESULT; | 108 Maybe<bool> WriteJSObjectSlow(Handle<JSObject> object) WARN_UNUSED_RESULT; |
109 Maybe<bool> WriteJSArray(Handle<JSArray> array) WARN_UNUSED_RESULT; | 109 Maybe<bool> WriteJSArray(Handle<JSArray> array) WARN_UNUSED_RESULT; |
110 void WriteJSDate(JSDate* date); | 110 void WriteJSDate(JSDate* date); |
111 Maybe<bool> WriteJSValue(Handle<JSValue> value) WARN_UNUSED_RESULT; | 111 Maybe<bool> WriteJSValue(Handle<JSValue> value) WARN_UNUSED_RESULT; |
112 void WriteJSRegExp(JSRegExp* regexp); | 112 void WriteJSRegExp(JSRegExp* regexp); |
113 Maybe<bool> WriteJSMap(Handle<JSMap> map) WARN_UNUSED_RESULT; | 113 Maybe<bool> WriteJSMap(Handle<JSMap> map) WARN_UNUSED_RESULT; |
114 Maybe<bool> WriteJSSet(Handle<JSSet> map) WARN_UNUSED_RESULT; | 114 Maybe<bool> WriteJSSet(Handle<JSSet> map) WARN_UNUSED_RESULT; |
115 Maybe<bool> WriteJSArrayBuffer(Handle<JSArrayBuffer> array_buffer) | 115 Maybe<bool> WriteJSArrayBuffer(JSArrayBuffer* array_buffer); |
116 WARN_UNUSED_RESULT; | |
117 Maybe<bool> WriteJSArrayBufferView(JSArrayBufferView* array_buffer); | 116 Maybe<bool> WriteJSArrayBufferView(JSArrayBufferView* array_buffer); |
118 Maybe<bool> WriteWasmModule(Handle<JSObject> object) WARN_UNUSED_RESULT; | 117 Maybe<bool> WriteWasmModule(Handle<JSObject> object) WARN_UNUSED_RESULT; |
119 Maybe<bool> WriteHostObject(Handle<JSObject> object) WARN_UNUSED_RESULT; | 118 Maybe<bool> WriteHostObject(Handle<JSObject> object) WARN_UNUSED_RESULT; |
120 | 119 |
121 /* | 120 /* |
122 * Reads the specified keys from the object and writes key-value pairs to the | 121 * Reads the specified keys from the object and writes key-value pairs to the |
123 * buffer. Returns the number of keys actually written, which may be smaller | 122 * buffer. Returns the number of keys actually written, which may be smaller |
124 * if some keys are not own properties when accessed. | 123 * if some keys are not own properties when accessed. |
125 */ | 124 */ |
126 Maybe<uint32_t> WriteJSObjectPropertiesSlow( | 125 Maybe<uint32_t> WriteJSObjectPropertiesSlow( |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 Handle<FixedArray> id_map_; | 270 Handle<FixedArray> id_map_; |
272 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; | 271 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; |
273 | 272 |
274 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); | 273 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); |
275 }; | 274 }; |
276 | 275 |
277 } // namespace internal | 276 } // namespace internal |
278 } // namespace v8 | 277 } // namespace v8 |
279 | 278 |
280 #endif // V8_VALUE_SERIALIZER_H_ | 279 #endif // V8_VALUE_SERIALIZER_H_ |
OLD | NEW |