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 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1658 | 1658 |
1659 | 1659 |
1660 // The output structure filled up by GetStackSample API function. | 1660 // The output structure filled up by GetStackSample API function. |
1661 struct SampleInfo { | 1661 struct SampleInfo { |
1662 size_t frames_count; | 1662 size_t frames_count; |
1663 StateTag vm_state; | 1663 StateTag vm_state; |
1664 }; | 1664 }; |
1665 | 1665 |
1666 | 1666 |
1667 /** | 1667 /** |
1668 * A JSON Parser. | 1668 * A JSON Parser. |
Toon Verwaest
2016/04/04 10:43:39
This isn't just a parser anymore now.
| |
1669 */ | 1669 */ |
1670 class V8_EXPORT JSON { | 1670 class V8_EXPORT JSON { |
1671 public: | 1671 public: |
1672 /** | 1672 /** |
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); | |
Toon Verwaest
2016/04/04 10:43:39
Shouldn't this get the context as input, like v8::
Yang
2016/04/04 10:55:43
The parser should definitely get a context as argu
| |
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 |