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

Side by Side Diff: include/v8.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 | « 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 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 std::vector<uint8_t> ReleaseBuffer(); 1691 std::vector<uint8_t> ReleaseBuffer();
1692 1692
1693 /* 1693 /*
1694 * Marks an ArrayBuffer as havings its contents transferred out of band. 1694 * Marks an ArrayBuffer as havings its contents transferred out of band.
1695 * Pass the corresponding JSArrayBuffer in the deserializing context to 1695 * Pass the corresponding JSArrayBuffer in the deserializing context to
1696 * ValueDeserializer::TransferArrayBuffer. 1696 * ValueDeserializer::TransferArrayBuffer.
1697 */ 1697 */
1698 void TransferArrayBuffer(uint32_t transfer_id, 1698 void TransferArrayBuffer(uint32_t transfer_id,
1699 Local<ArrayBuffer> array_buffer); 1699 Local<ArrayBuffer> array_buffer);
1700 1700
1701 /*
1702 * Similar to TransferArrayBuffer, but for SharedArrayBuffer.
1703 */
1704 void TransferSharedArrayBuffer(uint32_t transfer_id,
1705 Local<SharedArrayBuffer> shared_array_buffer);
1706
1701 private: 1707 private:
1702 ValueSerializer(const ValueSerializer&) = delete; 1708 ValueSerializer(const ValueSerializer&) = delete;
1703 void operator=(const ValueSerializer&) = delete; 1709 void operator=(const ValueSerializer&) = delete;
1704 1710
1705 struct PrivateData; 1711 struct PrivateData;
1706 PrivateData* private_; 1712 PrivateData* private_;
1707 }; 1713 };
1708 1714
1709 /** 1715 /**
1710 * Deserializes values from data written with ValueSerializer, or a compatible 1716 * Deserializes values from data written with ValueSerializer, or a compatible
(...skipping 20 matching lines...) Expand all
1731 V8_WARN_UNUSED_RESULT MaybeLocal<Value> ReadValue(Local<Context> context); 1737 V8_WARN_UNUSED_RESULT MaybeLocal<Value> ReadValue(Local<Context> context);
1732 1738
1733 /* 1739 /*
1734 * Accepts the array buffer corresponding to the one passed previously to 1740 * Accepts the array buffer corresponding to the one passed previously to
1735 * ValueSerializer::TransferArrayBuffer. 1741 * ValueSerializer::TransferArrayBuffer.
1736 */ 1742 */
1737 void TransferArrayBuffer(uint32_t transfer_id, 1743 void TransferArrayBuffer(uint32_t transfer_id,
1738 Local<ArrayBuffer> array_buffer); 1744 Local<ArrayBuffer> array_buffer);
1739 1745
1740 /* 1746 /*
1747 * Similar to TransferArrayBuffer, but for SharedArrayBuffer.
1748 * transfer_id exists in the same namespace as unshared ArrayBuffer objects.
1749 */
1750 void TransferSharedArrayBuffer(uint32_t transfer_id,
1751 Local<SharedArrayBuffer> shared_array_buffer);
1752
1753 /*
1741 * Must be called before ReadHeader to enable support for reading the legacy 1754 * Must be called before ReadHeader to enable support for reading the legacy
1742 * wire format (i.e., which predates this being shipped). 1755 * wire format (i.e., which predates this being shipped).
1743 * 1756 *
1744 * Don't use this unless you need to read data written by previous versions of 1757 * Don't use this unless you need to read data written by previous versions of
1745 * blink::ScriptValueSerializer. 1758 * blink::ScriptValueSerializer.
1746 */ 1759 */
1747 void SetSupportsLegacyWireFormat(bool supports_legacy_wire_format); 1760 void SetSupportsLegacyWireFormat(bool supports_legacy_wire_format);
1748 1761
1749 /* 1762 /*
1750 * Reads the underlying wire format version. Likely mostly to be useful to 1763 * Reads the underlying wire format version. Likely mostly to be useful to
(...skipping 7499 matching lines...) Expand 10 before | Expand all | Expand 10 after
9250 */ 9263 */
9251 9264
9252 9265
9253 } // namespace v8 9266 } // namespace v8
9254 9267
9255 9268
9256 #undef TYPE_CHECK 9269 #undef TYPE_CHECK
9257 9270
9258 9271
9259 #endif // INCLUDE_V8_H_ 9272 #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