Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: src/value-serializer.h

Issue 2290753002: Blink-compatible serialization of SharedArrayBuffer. (Closed)
Patch Set: msvc dislikes array initializer Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | src/value-serializer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 MaybeHandle<String> ReadTwoByteString() WARN_UNUSED_RESULT; 186 MaybeHandle<String> ReadTwoByteString() WARN_UNUSED_RESULT;
187 MaybeHandle<JSObject> ReadJSObject() WARN_UNUSED_RESULT; 187 MaybeHandle<JSObject> ReadJSObject() WARN_UNUSED_RESULT;
188 MaybeHandle<JSArray> ReadSparseJSArray() WARN_UNUSED_RESULT; 188 MaybeHandle<JSArray> ReadSparseJSArray() WARN_UNUSED_RESULT;
189 MaybeHandle<JSArray> ReadDenseJSArray() WARN_UNUSED_RESULT; 189 MaybeHandle<JSArray> ReadDenseJSArray() WARN_UNUSED_RESULT;
190 MaybeHandle<JSDate> ReadJSDate() WARN_UNUSED_RESULT; 190 MaybeHandle<JSDate> ReadJSDate() WARN_UNUSED_RESULT;
191 MaybeHandle<JSValue> ReadJSValue(SerializationTag tag) WARN_UNUSED_RESULT; 191 MaybeHandle<JSValue> ReadJSValue(SerializationTag tag) WARN_UNUSED_RESULT;
192 MaybeHandle<JSRegExp> ReadJSRegExp() WARN_UNUSED_RESULT; 192 MaybeHandle<JSRegExp> ReadJSRegExp() WARN_UNUSED_RESULT;
193 MaybeHandle<JSMap> ReadJSMap() WARN_UNUSED_RESULT; 193 MaybeHandle<JSMap> ReadJSMap() WARN_UNUSED_RESULT;
194 MaybeHandle<JSSet> ReadJSSet() WARN_UNUSED_RESULT; 194 MaybeHandle<JSSet> ReadJSSet() WARN_UNUSED_RESULT;
195 MaybeHandle<JSArrayBuffer> ReadJSArrayBuffer() WARN_UNUSED_RESULT; 195 MaybeHandle<JSArrayBuffer> ReadJSArrayBuffer() WARN_UNUSED_RESULT;
196 MaybeHandle<JSArrayBuffer> ReadTransferredJSArrayBuffer() WARN_UNUSED_RESULT; 196 MaybeHandle<JSArrayBuffer> ReadTransferredJSArrayBuffer(bool is_shared)
197 WARN_UNUSED_RESULT;
197 MaybeHandle<JSArrayBufferView> ReadJSArrayBufferView( 198 MaybeHandle<JSArrayBufferView> ReadJSArrayBufferView(
198 Handle<JSArrayBuffer> buffer) WARN_UNUSED_RESULT; 199 Handle<JSArrayBuffer> buffer) WARN_UNUSED_RESULT;
199 200
200 /* 201 /*
201 * Reads key-value pairs into the object until the specified end tag is 202 * Reads key-value pairs into the object until the specified end tag is
202 * encountered. If successful, returns the number of properties read. 203 * encountered. If successful, returns the number of properties read.
203 */ 204 */
204 Maybe<uint32_t> ReadJSObjectProperties(Handle<JSObject> object, 205 Maybe<uint32_t> ReadJSObjectProperties(Handle<JSObject> object,
205 SerializationTag end_tag); 206 SerializationTag end_tag);
206 207
(...skipping 12 matching lines...) Expand all
219 Handle<SeededNumberDictionary> id_map_; 220 Handle<SeededNumberDictionary> id_map_;
220 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; 221 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_;
221 222
222 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); 223 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer);
223 }; 224 };
224 225
225 } // namespace internal 226 } // namespace internal
226 } // namespace v8 227 } // namespace v8
227 228
228 #endif // V8_VALUE_SERIALIZER_H_ 229 #endif // V8_VALUE_SERIALIZER_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/value-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698