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