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

Side by Side Diff: include/v8.h

Issue 2657403002: Revert of [d8] Use ValueSerializer for postMessage (instead of ad-hoc serializer) (Closed)
Patch Set: 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/d8.h » ('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 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 * If the object cannot be serialized, an 1733 * If the object cannot be serialized, an
1734 * exception should be thrown and Nothing<uint32_t>() returned. 1734 * exception should be thrown and Nothing<uint32_t>() returned.
1735 */ 1735 */
1736 virtual Maybe<uint32_t> GetSharedArrayBufferId( 1736 virtual Maybe<uint32_t> GetSharedArrayBufferId(
1737 Isolate* isolate, Local<SharedArrayBuffer> shared_array_buffer); 1737 Isolate* isolate, Local<SharedArrayBuffer> shared_array_buffer);
1738 1738
1739 /* 1739 /*
1740 * Allocates memory for the buffer of at least the size provided. The actual 1740 * Allocates memory for the buffer of at least the size provided. The actual
1741 * size (which may be greater or equal) is written to |actual_size|. If no 1741 * size (which may be greater or equal) is written to |actual_size|. If no
1742 * buffer has been allocated yet, nullptr will be provided. 1742 * buffer has been allocated yet, nullptr will be provided.
1743 *
1744 * If the memory cannot be allocated, nullptr should be returned.
1745 * |actual_size| will be ignored. It is assumed that |old_buffer| is still
1746 * valid in this case and has not been modified.
1747 */ 1743 */
1748 virtual void* ReallocateBufferMemory(void* old_buffer, size_t size, 1744 virtual void* ReallocateBufferMemory(void* old_buffer, size_t size,
1749 size_t* actual_size); 1745 size_t* actual_size);
1750 1746
1751 /* 1747 /*
1752 * Frees a buffer allocated with |ReallocateBufferMemory|. 1748 * Frees a buffer allocated with |ReallocateBufferMemory|.
1753 */ 1749 */
1754 virtual void FreeBufferMemory(void* buffer); 1750 virtual void FreeBufferMemory(void* buffer);
1755 }; 1751 };
1756 1752
(...skipping 8104 matching lines...) Expand 10 before | Expand all | Expand 10 after
9861 */ 9857 */
9862 9858
9863 9859
9864 } // namespace v8 9860 } // namespace v8
9865 9861
9866 9862
9867 #undef TYPE_CHECK 9863 #undef TYPE_CHECK
9868 9864
9869 9865
9870 #endif // INCLUDE_V8_H_ 9866 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698