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

Side by Side Diff: include/v8.h

Issue 2643723010: [d8] Use ValueSerializer for postMessage (instead of ad-hoc serializer) (Closed)
Patch Set: forgot hash_combine 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') | test/mjsunit/regress/regress-crbug-514081.js » ('J')
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.
1743 */ 1747 */
1744 virtual void* ReallocateBufferMemory(void* old_buffer, size_t size, 1748 virtual void* ReallocateBufferMemory(void* old_buffer, size_t size,
1745 size_t* actual_size); 1749 size_t* actual_size);
1746 1750
1747 /* 1751 /*
1748 * Frees a buffer allocated with |ReallocateBufferMemory|. 1752 * Frees a buffer allocated with |ReallocateBufferMemory|.
1749 */ 1753 */
1750 virtual void FreeBufferMemory(void* buffer); 1754 virtual void FreeBufferMemory(void* buffer);
1751 }; 1755 };
1752 1756
(...skipping 8104 matching lines...) Expand 10 before | Expand all | Expand 10 after
9857 */ 9861 */
9858 9862
9859 9863
9860 } // namespace v8 9864 } // namespace v8
9861 9865
9862 9866
9863 #undef TYPE_CHECK 9867 #undef TYPE_CHECK
9864 9868
9865 9869
9866 #endif // INCLUDE_V8_H_ 9870 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.h » ('j') | test/mjsunit/regress/regress-crbug-514081.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698