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

Side by Side Diff: include/v8.h

Issue 2696133007: ValueSerializer: Add SetTreatArrayBufferViewsAsHostObjects() flag (Closed)
Patch Set: ValueSerializer: Add SetTreatArrayBufferViewsAsHostObjects() flag Created 3 years, 10 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 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 1793
1794 /* 1794 /*
1795 * Similar to TransferArrayBuffer, but for SharedArrayBuffer. 1795 * Similar to TransferArrayBuffer, but for SharedArrayBuffer.
1796 */ 1796 */
1797 V8_DEPRECATE_SOON("Use Delegate::GetSharedArrayBufferId", 1797 V8_DEPRECATE_SOON("Use Delegate::GetSharedArrayBufferId",
1798 void TransferSharedArrayBuffer( 1798 void TransferSharedArrayBuffer(
1799 uint32_t transfer_id, 1799 uint32_t transfer_id,
1800 Local<SharedArrayBuffer> shared_array_buffer)); 1800 Local<SharedArrayBuffer> shared_array_buffer));
1801 1801
1802 /* 1802 /*
1803 * Indicate whether to treat ArrayBufferView objects as host objects,
1804 * i.e. pass them to Delegate::WriteHostObject. This should not be
1805 * called when no Delegate was passed.
1806 *
1807 * The default is not to treat ArrayBufferViews as host objects.
1808 */
1809 void SetTreatArrayBufferViewsAsHostObjects(bool mode);
1810
1811 /*
1803 * Write raw data in various common formats to the buffer. 1812 * Write raw data in various common formats to the buffer.
1804 * Note that integer types are written in base-128 varint format, not with a 1813 * Note that integer types are written in base-128 varint format, not with a
1805 * binary copy. For use during an override of Delegate::WriteHostObject. 1814 * binary copy. For use during an override of Delegate::WriteHostObject.
1806 */ 1815 */
1807 void WriteUint32(uint32_t value); 1816 void WriteUint32(uint32_t value);
1808 void WriteUint64(uint64_t value); 1817 void WriteUint64(uint64_t value);
1809 void WriteDouble(double value); 1818 void WriteDouble(double value);
1810 void WriteRawBytes(const void* source, size_t length); 1819 void WriteRawBytes(const void* source, size_t length);
1811 1820
1812 private: 1821 private:
(...skipping 8046 matching lines...) Expand 10 before | Expand all | Expand 10 after
9859 */ 9868 */
9860 9869
9861 9870
9862 } // namespace v8 9871 } // namespace v8
9863 9872
9864 9873
9865 #undef TYPE_CHECK 9874 #undef TYPE_CHECK
9866 9875
9867 9876
9868 #endif // INCLUDE_V8_H_ 9877 #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