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 void* fp; // Frame pointer. | 1658 void* fp; // Frame pointer. |
1659 }; | 1659 }; |
1660 | 1660 |
1661 | 1661 |
1662 // The output structure filled up by GetStackSample API function. | 1662 // The output structure filled up by GetStackSample API function. |
1663 struct SampleInfo { | 1663 struct SampleInfo { |
1664 size_t frames_count; | 1664 size_t frames_count; |
1665 StateTag vm_state; | 1665 StateTag vm_state; |
1666 }; | 1666 }; |
1667 | 1667 |
1668 | |
1669 /** | 1668 /** |
1670 * A JSON Parser. | 1669 * A JSON Parser and Stringifier. |
1671 */ | 1670 */ |
1672 class V8_EXPORT JSON { | 1671 class V8_EXPORT JSON { |
1673 public: | 1672 public: |
1674 /** | 1673 /** |
1675 * Tries to parse the string |json_string| and returns it as value if | 1674 * Tries to parse the string |json_string| and returns it as value if |
1676 * successful. | 1675 * successful. |
1677 * | 1676 * |
1678 * \param json_string The string to parse. | 1677 * \param json_string The string to parse. |
1679 * \return The corresponding value if successfully parsed. | 1678 * \return The corresponding value if successfully parsed. |
1680 */ | 1679 */ |
1681 static V8_DEPRECATED("Use maybe version", | 1680 static V8_DEPRECATED("Use maybe version", |
1682 Local<Value> Parse(Local<String> json_string)); | 1681 Local<Value> Parse(Local<String> json_string)); |
1683 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse( | 1682 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse( |
haavardm
2016/04/15 10:44:49
Should this be deprecated?
jochen (gone - plz use gerrit)
2016/04/15 10:50:11
yes, please mark it as V8_DEPRECATE_SOON - that me
haavardm
2016/04/15 11:45:23
Done.
| |
1684 Isolate* isolate, Local<String> json_string); | 1683 Isolate* isolate, Local<String> json_string); |
1684 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse( | |
1685 Local<Context> context, Local<String> json_string); | |
1686 | |
1687 /** | |
1688 * Tries to stringify the JSON-serializable object |json_object| and returns | |
1689 * it as string if successful. | |
1690 * | |
1691 * \param json_object The JSON-serializable object to stringify. | |
1692 * \return The corresponding string if successfully stringified. | |
1693 */ | |
1694 static V8_WARN_UNUSED_RESULT MaybeLocal<String> Stringify( | |
1695 Isolate* isolate, Local<Object> json_object); | |
jochen (gone - plz use gerrit)
2016/04/15 10:50:11
should also take a Local<Context> instead of Isola
haavardm
2016/04/15 11:45:23
Done.
| |
1685 }; | 1696 }; |
1686 | 1697 |
1687 | 1698 |
1688 /** | 1699 /** |
1689 * A map whose keys are referenced weakly. It is similar to JavaScript WeakMap | 1700 * A map whose keys are referenced weakly. It is similar to JavaScript WeakMap |
1690 * but can be created without entering a v8::Context and hence shouldn't | 1701 * but can be created without entering a v8::Context and hence shouldn't |
1691 * escape to JavaScript. | 1702 * escape to JavaScript. |
1692 */ | 1703 */ |
1693 class V8_EXPORT NativeWeakMap : public Data { | 1704 class V8_EXPORT NativeWeakMap : public Data { |
1694 public: | 1705 public: |
(...skipping 7047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8742 */ | 8753 */ |
8743 | 8754 |
8744 | 8755 |
8745 } // namespace v8 | 8756 } // namespace v8 |
8746 | 8757 |
8747 | 8758 |
8748 #undef TYPE_CHECK | 8759 #undef TYPE_CHECK |
8749 | 8760 |
8750 | 8761 |
8751 #endif // INCLUDE_V8_H_ | 8762 #endif // INCLUDE_V8_H_ |
OLD | NEW |