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

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

Issue 2964943002: [wasm] Introduce instance types for WebAssembly.* objects. (Closed)
Patch Set: Address rossberg comments. Created 3 years, 5 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/runtime/runtime-wasm.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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/runtime/runtime-wasm.cc ('k') | src/value-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698