| 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 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1651 Local<Context> context, Local<String> json_string); | 1651 Local<Context> context, Local<String> json_string); |
| 1652 | 1652 |
| 1653 /** | 1653 /** |
| 1654 * Tries to stringify the JSON-serializable object |json_object| and returns | 1654 * Tries to stringify the JSON-serializable object |json_object| and returns |
| 1655 * it as string if successful. | 1655 * it as string if successful. |
| 1656 * | 1656 * |
| 1657 * \param json_object The JSON-serializable object to stringify. | 1657 * \param json_object The JSON-serializable object to stringify. |
| 1658 * \return The corresponding string if successfully stringified. | 1658 * \return The corresponding string if successfully stringified. |
| 1659 */ | 1659 */ |
| 1660 static V8_WARN_UNUSED_RESULT MaybeLocal<String> Stringify( | 1660 static V8_WARN_UNUSED_RESULT MaybeLocal<String> Stringify( |
| 1661 Local<Context> context, Local<Object> json_object); | 1661 Local<Context> context, Local<Object> json_object, |
| 1662 Local<String> gap = Local<String>()); |
| 1662 }; | 1663 }; |
| 1663 | 1664 |
| 1664 | 1665 |
| 1665 /** | 1666 /** |
| 1666 * A map whose keys are referenced weakly. It is similar to JavaScript WeakMap | 1667 * A map whose keys are referenced weakly. It is similar to JavaScript WeakMap |
| 1667 * but can be created without entering a v8::Context and hence shouldn't | 1668 * but can be created without entering a v8::Context and hence shouldn't |
| 1668 * escape to JavaScript. | 1669 * escape to JavaScript. |
| 1669 */ | 1670 */ |
| 1670 class V8_EXPORT NativeWeakMap : public Data { | 1671 class V8_EXPORT NativeWeakMap : public Data { |
| 1671 public: | 1672 public: |
| (...skipping 7071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8743 */ | 8744 */ |
| 8744 | 8745 |
| 8745 | 8746 |
| 8746 } // namespace v8 | 8747 } // namespace v8 |
| 8747 | 8748 |
| 8748 | 8749 |
| 8749 #undef TYPE_CHECK | 8750 #undef TYPE_CHECK |
| 8750 | 8751 |
| 8751 | 8752 |
| 8752 #endif // INCLUDE_V8_H_ | 8753 #endif // INCLUDE_V8_H_ |
| OLD | NEW |