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 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 * Tries to parse the string |json_string| and returns it as value if | 1673 * Tries to parse the string |json_string| and returns it as value if |
1674 * successful. | 1674 * successful. |
1675 * | 1675 * |
1676 * \param json_string The string to parse. | 1676 * \param json_string The string to parse. |
1677 * \return The corresponding value if successfully parsed. | 1677 * \return The corresponding value if successfully parsed. |
1678 */ | 1678 */ |
1679 static V8_DEPRECATED("Use maybe version", | 1679 static V8_DEPRECATED("Use maybe version", |
1680 Local<Value> Parse(Local<String> json_string)); | 1680 Local<Value> Parse(Local<String> json_string)); |
1681 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse( | 1681 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse( |
1682 Isolate* isolate, Local<String> json_string); | 1682 Isolate* isolate, Local<String> json_string); |
| 1683 |
| 1684 /** |
| 1685 * Tries to stringify the JSON-serializable object |json_object| and returns |
| 1686 * it as string if successful. |
| 1687 * |
| 1688 * \param json_object The JSON-serializable object to stringify. |
| 1689 * \return The corresponding string if successfully stringified. |
| 1690 */ |
| 1691 static V8_WARN_UNUSED_RESULT MaybeLocal<String> Stringify( |
| 1692 Isolate* isolate, Local<Object> json_object); |
1683 }; | 1693 }; |
1684 | 1694 |
1685 | 1695 |
1686 /** | 1696 /** |
1687 * A map whose keys are referenced weakly. It is similar to JavaScript WeakMap | 1697 * A map whose keys are referenced weakly. It is similar to JavaScript WeakMap |
1688 * but can be created without entering a v8::Context and hence shouldn't | 1698 * but can be created without entering a v8::Context and hence shouldn't |
1689 * escape to JavaScript. | 1699 * escape to JavaScript. |
1690 */ | 1700 */ |
1691 class V8_EXPORT NativeWeakMap : public Data { | 1701 class V8_EXPORT NativeWeakMap : public Data { |
1692 public: | 1702 public: |
(...skipping 7054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8747 */ | 8757 */ |
8748 | 8758 |
8749 | 8759 |
8750 } // namespace v8 | 8760 } // namespace v8 |
8751 | 8761 |
8752 | 8762 |
8753 #undef TYPE_CHECK | 8763 #undef TYPE_CHECK |
8754 | 8764 |
8755 | 8765 |
8756 #endif // INCLUDE_V8_H_ | 8766 #endif // INCLUDE_V8_H_ |
OLD | NEW |