OLD | NEW |
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 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 */ | 1736 */ |
1737 class V8_EXPORT ValueDeserializer { | 1737 class V8_EXPORT ValueDeserializer { |
1738 public: | 1738 public: |
1739 ValueDeserializer(Isolate* isolate, const uint8_t* data, size_t size); | 1739 ValueDeserializer(Isolate* isolate, const uint8_t* data, size_t size); |
1740 ~ValueDeserializer(); | 1740 ~ValueDeserializer(); |
1741 | 1741 |
1742 /* | 1742 /* |
1743 * Reads and validates a header (including the format version). | 1743 * Reads and validates a header (including the format version). |
1744 * May, for example, reject an invalid or unsupported wire format. | 1744 * May, for example, reject an invalid or unsupported wire format. |
1745 */ | 1745 */ |
1746 V8_WARN_UNUSED_RESULT Maybe<bool> ReadHeader(); | 1746 V8_WARN_UNUSED_RESULT Maybe<bool> ReadHeader(Local<Context> context); |
| 1747 V8_DEPRECATE_SOON("Use Local<Context> version", Maybe<bool> ReadHeader()); |
1747 | 1748 |
1748 /* | 1749 /* |
1749 * Deserializes a JavaScript value from the buffer. | 1750 * Deserializes a JavaScript value from the buffer. |
1750 */ | 1751 */ |
1751 V8_WARN_UNUSED_RESULT MaybeLocal<Value> ReadValue(Local<Context> context); | 1752 V8_WARN_UNUSED_RESULT MaybeLocal<Value> ReadValue(Local<Context> context); |
1752 | 1753 |
1753 /* | 1754 /* |
1754 * Accepts the array buffer corresponding to the one passed previously to | 1755 * Accepts the array buffer corresponding to the one passed previously to |
1755 * ValueSerializer::TransferArrayBuffer. | 1756 * ValueSerializer::TransferArrayBuffer. |
1756 */ | 1757 */ |
(...skipping 7688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9445 */ | 9446 */ |
9446 | 9447 |
9447 | 9448 |
9448 } // namespace v8 | 9449 } // namespace v8 |
9449 | 9450 |
9450 | 9451 |
9451 #undef TYPE_CHECK | 9452 #undef TYPE_CHECK |
9452 | 9453 |
9453 | 9454 |
9454 #endif // INCLUDE_V8_H_ | 9455 #endif // INCLUDE_V8_H_ |
OLD | NEW |