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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 Maybe<bool> WriteJSObjectSlow(Handle<JSObject> object) WARN_UNUSED_RESULT; | 118 Maybe<bool> WriteJSObjectSlow(Handle<JSObject> object) WARN_UNUSED_RESULT; |
119 Maybe<bool> WriteJSArray(Handle<JSArray> array) WARN_UNUSED_RESULT; | 119 Maybe<bool> WriteJSArray(Handle<JSArray> array) WARN_UNUSED_RESULT; |
120 void WriteJSDate(JSDate* date); | 120 void WriteJSDate(JSDate* date); |
121 Maybe<bool> WriteJSValue(Handle<JSValue> value) WARN_UNUSED_RESULT; | 121 Maybe<bool> WriteJSValue(Handle<JSValue> value) WARN_UNUSED_RESULT; |
122 void WriteJSRegExp(JSRegExp* regexp); | 122 void WriteJSRegExp(JSRegExp* regexp); |
123 Maybe<bool> WriteJSMap(Handle<JSMap> map) WARN_UNUSED_RESULT; | 123 Maybe<bool> WriteJSMap(Handle<JSMap> map) WARN_UNUSED_RESULT; |
124 Maybe<bool> WriteJSSet(Handle<JSSet> map) WARN_UNUSED_RESULT; | 124 Maybe<bool> WriteJSSet(Handle<JSSet> map) WARN_UNUSED_RESULT; |
125 Maybe<bool> WriteJSArrayBuffer(Handle<JSArrayBuffer> array_buffer) | 125 Maybe<bool> WriteJSArrayBuffer(Handle<JSArrayBuffer> array_buffer) |
126 WARN_UNUSED_RESULT; | 126 WARN_UNUSED_RESULT; |
127 Maybe<bool> WriteJSArrayBufferView(JSArrayBufferView* array_buffer); | 127 Maybe<bool> WriteJSArrayBufferView(JSArrayBufferView* array_buffer); |
128 Maybe<bool> WriteWasmModule(Handle<JSObject> object) WARN_UNUSED_RESULT; | 128 Maybe<bool> WriteWasmModule(Handle<WasmModuleObject> object) |
| 129 WARN_UNUSED_RESULT; |
129 Maybe<bool> WriteHostObject(Handle<JSObject> object) WARN_UNUSED_RESULT; | 130 Maybe<bool> WriteHostObject(Handle<JSObject> object) WARN_UNUSED_RESULT; |
130 | 131 |
131 /* | 132 /* |
132 * Reads the specified keys from the object and writes key-value pairs to the | 133 * Reads the specified keys from the object and writes key-value pairs to the |
133 * buffer. Returns the number of keys actually written, which may be smaller | 134 * buffer. Returns the number of keys actually written, which may be smaller |
134 * if some keys are not own properties when accessed. | 135 * if some keys are not own properties when accessed. |
135 */ | 136 */ |
136 Maybe<uint32_t> WriteJSObjectPropertiesSlow( | 137 Maybe<uint32_t> WriteJSObjectPropertiesSlow( |
137 Handle<JSObject> object, Handle<FixedArray> keys) WARN_UNUSED_RESULT; | 138 Handle<JSObject> object, Handle<FixedArray> keys) WARN_UNUSED_RESULT; |
138 | 139 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 Handle<FixedArray> id_map_; | 298 Handle<FixedArray> id_map_; |
298 MaybeHandle<UnseededNumberDictionary> array_buffer_transfer_map_; | 299 MaybeHandle<UnseededNumberDictionary> array_buffer_transfer_map_; |
299 | 300 |
300 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); | 301 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); |
301 }; | 302 }; |
302 | 303 |
303 } // namespace internal | 304 } // namespace internal |
304 } // namespace v8 | 305 } // namespace v8 |
305 | 306 |
306 #endif // V8_VALUE_SERIALIZER_H_ | 307 #endif // V8_VALUE_SERIALIZER_H_ |
OLD | NEW |