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

Side by Side Diff: include/v8.h

Issue 2436543004: [wasm] remove deprecated deserialization API (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | src/api.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 3888 matching lines...) Expand 10 before | Expand all | Expand 10 after
3899 typedef std::pair<std::unique_ptr<const uint8_t[]>, size_t> SerializedModule; 3899 typedef std::pair<std::unique_ptr<const uint8_t[]>, size_t> SerializedModule;
3900 // A buffer that is owned by the caller. 3900 // A buffer that is owned by the caller.
3901 typedef std::pair<const uint8_t*, size_t> CallerOwnedBuffer; 3901 typedef std::pair<const uint8_t*, size_t> CallerOwnedBuffer;
3902 // Get the wasm-encoded bytes that were used to compile this module. 3902 // Get the wasm-encoded bytes that were used to compile this module.
3903 Local<String> GetWasmWireBytes(); 3903 Local<String> GetWasmWireBytes();
3904 3904
3905 // Serialize the compiled module. The serialized data does not include the 3905 // Serialize the compiled module. The serialized data does not include the
3906 // uncompiled bytes. 3906 // uncompiled bytes.
3907 SerializedModule Serialize(); 3907 SerializedModule Serialize();
3908 3908
3909 // TODO(mtrofin): Back-compat. Move to private once change lands in Chrome.
3910 // The resulting wasm setup won't have its uncompiled bytes available.
3911 static MaybeLocal<WasmCompiledModule> Deserialize(
3912 Isolate* isolate, const SerializedModule& serialized_module);
3913 // If possible, deserialize the module, otherwise compile it from the provided 3909 // If possible, deserialize the module, otherwise compile it from the provided
3914 // uncompiled bytes. 3910 // uncompiled bytes.
3915 static MaybeLocal<WasmCompiledModule> DeserializeOrCompile( 3911 static MaybeLocal<WasmCompiledModule> DeserializeOrCompile(
3916 Isolate* isolate, const CallerOwnedBuffer& serialized_module, 3912 Isolate* isolate, const CallerOwnedBuffer& serialized_module,
3917 const CallerOwnedBuffer& wire_bytes); 3913 const CallerOwnedBuffer& wire_bytes);
3918 V8_INLINE static WasmCompiledModule* Cast(Value* obj); 3914 V8_INLINE static WasmCompiledModule* Cast(Value* obj);
3919 3915
3920 private: 3916 private:
3921 static MaybeLocal<WasmCompiledModule> Deserialize( 3917 static MaybeLocal<WasmCompiledModule> Deserialize(
3922 Isolate* isolate, const CallerOwnedBuffer& serialized_module); 3918 Isolate* isolate, const CallerOwnedBuffer& serialized_module);
(...skipping 5742 matching lines...) Expand 10 before | Expand all | Expand 10 after
9665 */ 9661 */
9666 9662
9667 9663
9668 } // namespace v8 9664 } // namespace v8
9669 9665
9670 9666
9671 #undef TYPE_CHECK 9667 #undef TYPE_CHECK
9672 9668
9673 9669
9674 #endif // INCLUDE_V8_H_ 9670 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698