| 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(JSArrayBuffer* array_buffer); | 115 Maybe<bool> WriteJSArrayBuffer(Handle<JSArrayBuffer> array_buffer) |
| 116 WARN_UNUSED_RESULT; |
| 116 Maybe<bool> WriteJSArrayBufferView(JSArrayBufferView* array_buffer); | 117 Maybe<bool> WriteJSArrayBufferView(JSArrayBufferView* array_buffer); |
| 117 Maybe<bool> WriteWasmModule(Handle<JSObject> object) WARN_UNUSED_RESULT; | 118 Maybe<bool> WriteWasmModule(Handle<JSObject> object) WARN_UNUSED_RESULT; |
| 118 Maybe<bool> WriteHostObject(Handle<JSObject> object) WARN_UNUSED_RESULT; | 119 Maybe<bool> WriteHostObject(Handle<JSObject> object) WARN_UNUSED_RESULT; |
| 119 | 120 |
| 120 /* | 121 /* |
| 121 * Reads the specified keys from the object and writes key-value pairs to the | 122 * Reads the specified keys from the object and writes key-value pairs to the |
| 122 * buffer. Returns the number of keys actually written, which may be smaller | 123 * buffer. Returns the number of keys actually written, which may be smaller |
| 123 * if some keys are not own properties when accessed. | 124 * if some keys are not own properties when accessed. |
| 124 */ | 125 */ |
| 125 Maybe<uint32_t> WriteJSObjectPropertiesSlow( | 126 Maybe<uint32_t> WriteJSObjectPropertiesSlow( |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 Handle<FixedArray> id_map_; | 271 Handle<FixedArray> id_map_; |
| 271 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; | 272 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; |
| 272 | 273 |
| 273 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); | 274 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); |
| 274 }; | 275 }; |
| 275 | 276 |
| 276 } // namespace internal | 277 } // namespace internal |
| 277 } // namespace v8 | 278 } // namespace v8 |
| 278 | 279 |
| 279 #endif // V8_VALUE_SERIALIZER_H_ | 280 #endif // V8_VALUE_SERIALIZER_H_ |
| OLD | NEW |