Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Side by Side Diff: include/v8.h

Issue 1847823004: Expose JSON stringifier through V8 API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698